Fix zh_Hans_CN.GB2312 locale

Operating Systems / DragonFlyBSD - John Marino [marino.st] - 1 August 2015 13:00 UTC

It turns out that using a commented source file for LC_* file generation really isn't a good idea. In the cldr2def tool's charmap.xls, the low ASCII is transformed to the "Full width" versions, but the first byte just happens to be "#". Yes, that's right, the comment character.

Since all comments are either "#" or or followed by a space, I can fix the resulting broken zh_Hans_CN.GB2312 by alterning the grep instruction. However, if we ever have a legitimate single "#" character as input, then this won't work anymore.

The Armenian changes are a result to a tool correction that will be commited shortly.

ad8989d Fix zh_Hans_CN.GB2312 locale
share/colldef/Makefile | 3 ++-
share/monetdef/Makefile | 2 +-
share/monetdef/hy_AM.ARMSCII-8.src | 8 ++++----
share/msgdef/Makefile | 2 +-
share/numericdef/Makefile | 4 ++--
share/numericdef/hy_AM.ARMSCII-8.src | 4 ++--
share/numericdef/hy_AM.UTF-8.src | 14 --------------
share/timedef/Makefile | 2 +-
share/timedef/hy_AM.ARMSCII-8.src | 4 ++--
9 files changed, 15 insertions(+), 28 deletions(-)

Upstream: gitweb.dragonflybsd.org


  • Share