git: cldr2def: Slim down ctype src files

John Marino marino at crater.dragonflybsd.org
Sat Aug 15 06:30:42 PDT 2015


commit 6e46cba7c2068ca21f8d50de601d72784bbecb9b
Author: John Marino <draco at marino.st>
Date:   Sat Aug 15 15:04:22 2015 +0200

    cldr2def: Slim down ctype src files
    
    I originally modified the tool to use "ranges" to define the CTYPE,
    e.g. "<a>;...;<z>" rather than "<a>;<b>;<c> ... <z>".  This worked
    great on UTF-8 but converting to other encodings is not supported
    because part of the range may not exist, or the upper boundary may
    come before the lower boundary in the target encoding.  Thus I had
    to remove that work, but I was able to retain the removal of the now
    redundant "print" section.
    
    I confirmed that the output without "print" section was identical to
    before, and then I added back "print" section with a single element:
    NO-BREAK_SPACE. This character is used in quite a few monetary
    defintions, but it was never mapped to CTYPE, which I believe is a
    mistake.  NO-BREAK_SPACE is also defined as a blank, which is considered
    a space as well by localedef tool (so there's no need to also define a
    "space" section").
    
    The net change is multibyte encodings now have non-breaking spaces
    1) recognized and 2) defined as printable.

Summary of changes:
 tools/tools/locale/tools/cldr2def.pl | 19 +++++++++++++++++--
 1 file changed, 17 insertions(+), 2 deletions(-)
 mode change 100755 => 100644 tools/tools/locale/tools/cldr2def.pl

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/6e46cba7c2068ca21f8d50de601d72784bbecb9b


-- 
DragonFly BSD source repository


More information about the Commits mailing list