History log of /freebsd-11-stable/tools/tools/locale/
Revision Date Author Comments
(<<< Hide modified files)
(Show modified files >>>)
367262 02-Nov-2020 lwhsu

MFC r353127:

Pre-generate Big5 charmap from CLDR data.

The one used previously was missing the characters in 0-127 range,
making various tools try to escape them in output.

PR: 235100
Reviewed by: bapt
Tested by: Ting-Wei Lan <lantw44@gmail.com>
Differential Revision: https://reviews.freebsd.org/D21794

341630 06-Dec-2018 yuripv

MFC r339311, r339313:
Restore some of the ctype definitions reported in the PR from pre-CLDR
data, namely 0xE000-0xF8FF private use area, and 0xFF00-0xFFF half- and
fullwidth punctuation.

While here, update tools/tools/locale/README based on my experience
rebuilding the locale data.

PR: 225692
Reviewed by: bapt, cem (previous version)
Differential Revision: https://reviews.freebsd.org/D17471

325933 17-Nov-2017 bapt

MFC: 325359

Upgrade to Unicode 10.0.0

312336 17-Jan-2017 bapt

MFC r310201:

Update locales cldr to v30.0.3 and unicode to 9.0.0

Relnotes: yes


/freebsd-11-stable/share/colldef/Makefile
/freebsd-11-stable/share/colldef/af_ZA.UTF-8.src
/freebsd-11-stable/share/colldef/am_ET.UTF-8.src
/freebsd-11-stable/share/colldef/ar_SA.UTF-8.src
/freebsd-11-stable/share/colldef/be_BY.UTF-8.src
/freebsd-11-stable/share/colldef/ca_AD.UTF-8.src
/freebsd-11-stable/share/colldef/cs_CZ.ISO8859-2.src
/freebsd-11-stable/share/colldef/cs_CZ.UTF-8.src
/freebsd-11-stable/share/colldef/da_DK.ISO8859-1.src
/freebsd-11-stable/share/colldef/da_DK.ISO8859-15.src
/freebsd-11-stable/share/colldef/da_DK.UTF-8.src
/freebsd-11-stable/share/colldef/el_GR.UTF-8.src
/freebsd-11-stable/share/colldef/en_US.UTF-8.src
/freebsd-11-stable/share/colldef/es_MX.UTF-8.src
/freebsd-11-stable/share/colldef/et_EE.UTF-8.src
/freebsd-11-stable/share/colldef/fi_FI.UTF-8.src
/freebsd-11-stable/share/colldef/fr_CA.UTF-8.src
/freebsd-11-stable/share/colldef/he_IL.UTF-8.src
/freebsd-11-stable/share/colldef/hi_IN.UTF-8.src
/freebsd-11-stable/share/colldef/hr_HR.ISO8859-2.src
/freebsd-11-stable/share/colldef/hr_HR.UTF-8.src
/freebsd-11-stable/share/colldef/hu_HU.ISO8859-2.src
/freebsd-11-stable/share/colldef/hu_HU.UTF-8.src
/freebsd-11-stable/share/colldef/hy_AM.UTF-8.src
/freebsd-11-stable/share/colldef/is_IS.UTF-8.src
/freebsd-11-stable/share/colldef/ja_JP.UTF-8.src
/freebsd-11-stable/share/colldef/ja_JP.eucJP.src
/freebsd-11-stable/share/colldef/kk_KZ.UTF-8.src
/freebsd-11-stable/share/colldef/ko_KR.UTF-8.src
/freebsd-11-stable/share/colldef/lt_LT.UTF-8.src
/freebsd-11-stable/share/colldef/lv_LV.UTF-8.src
/freebsd-11-stable/share/colldef/nb_NO.ISO8859-1.src
/freebsd-11-stable/share/colldef/nb_NO.ISO8859-15.src
/freebsd-11-stable/share/colldef/nb_NO.UTF-8.src
/freebsd-11-stable/share/colldef/nn_NO.ISO8859-1.src
/freebsd-11-stable/share/colldef/nn_NO.ISO8859-15.src
/freebsd-11-stable/share/colldef/nn_NO.UTF-8.src
/freebsd-11-stable/share/colldef/pl_PL.UTF-8.src
/freebsd-11-stable/share/colldef/ro_RO.UTF-8.src
/freebsd-11-stable/share/colldef/ru_RU.UTF-8.src
/freebsd-11-stable/share/colldef/se_NO.UTF-8.src
/freebsd-11-stable/share/colldef/sk_SK.ISO8859-2.src
/freebsd-11-stable/share/colldef/sk_SK.UTF-8.src
/freebsd-11-stable/share/colldef/sl_SI.UTF-8.src
/freebsd-11-stable/share/colldef/sr_RS.ISO8859-2.src
/freebsd-11-stable/share/colldef/sr_RS.ISO8859-5.src
/freebsd-11-stable/share/colldef/sr_RS.UTF-8.src
/freebsd-11-stable/share/colldef/sr_RS.UTF-8@latin.src
/freebsd-11-stable/share/colldef/sv_SE.UTF-8.src
/freebsd-11-stable/share/colldef/tr_TR.UTF-8.src
/freebsd-11-stable/share/colldef/uk_UA.UTF-8.src
/freebsd-11-stable/share/colldef/zh_CN.GB18030.src
/freebsd-11-stable/share/colldef/zh_CN.GB2312.src
/freebsd-11-stable/share/colldef/zh_CN.GBK.src
/freebsd-11-stable/share/colldef/zh_CN.UTF-8.src
/freebsd-11-stable/share/colldef/zh_CN.eucCN.src
/freebsd-11-stable/share/colldef/zh_TW.Big5.src
/freebsd-11-stable/share/colldef/zh_TW.UTF-8.src
/freebsd-11-stable/share/ctypedef/Makefile
/freebsd-11-stable/share/ctypedef/be_BY.CP1131.src
/freebsd-11-stable/share/ctypedef/ca_IT.ISO8859-1.src
/freebsd-11-stable/share/ctypedef/en_US.ISO8859-1.src
/freebsd-11-stable/share/ctypedef/en_US.UTF-8.src
/freebsd-11-stable/share/ctypedef/hi_IN.ISCII-DEV.src
/freebsd-11-stable/share/ctypedef/ja_JP.SJIS.src
/freebsd-11-stable/share/ctypedef/ja_JP.eucJP.src
/freebsd-11-stable/share/ctypedef/uk_UA.CP1251.src
/freebsd-11-stable/share/ctypedef/zh_CN.GB18030.src
/freebsd-11-stable/share/ctypedef/zh_CN.eucCN.src
/freebsd-11-stable/share/monetdef/Makefile
/freebsd-11-stable/share/monetdef/ar_AE.UTF-8.src
/freebsd-11-stable/share/monetdef/ar_EG.UTF-8.src
/freebsd-11-stable/share/monetdef/ar_JO.UTF-8.src
/freebsd-11-stable/share/monetdef/ar_QA.UTF-8.src
/freebsd-11-stable/share/monetdef/ar_SA.UTF-8.src
/freebsd-11-stable/share/monetdef/be_BY.CP1131.src
/freebsd-11-stable/share/monetdef/be_BY.CP1251.src
/freebsd-11-stable/share/monetdef/be_BY.ISO8859-5.src
/freebsd-11-stable/share/monetdef/be_BY.UTF-8.src
/freebsd-11-stable/share/monetdef/bg_BG.CP1251.src
/freebsd-11-stable/share/monetdef/bg_BG.UTF-8.src
/freebsd-11-stable/share/monetdef/es_AR.UTF-8.src
/freebsd-11-stable/share/monetdef/es_CR.UTF-8.src
/freebsd-11-stable/share/monetdef/hu_HU.ISO8859-2.src
/freebsd-11-stable/share/monetdef/hu_HU.UTF-8.src
/freebsd-11-stable/share/monetdef/hy_AM.ARMSCII-8.src
/freebsd-11-stable/share/monetdef/hy_AM.UTF-8.src
/freebsd-11-stable/share/monetdef/lv_LV.ISO8859-13.src
/freebsd-11-stable/share/monetdef/lv_LV.UTF-8.src
/freebsd-11-stable/share/monetdef/nl_BE.UTF-8.src
/freebsd-11-stable/share/monetdef/ru_RU.CP1251.src
/freebsd-11-stable/share/monetdef/ru_RU.CP866.src
/freebsd-11-stable/share/monetdef/ru_RU.ISO8859-5.src
/freebsd-11-stable/share/monetdef/ru_RU.KOI8-R.src
/freebsd-11-stable/share/monetdef/ru_RU.UTF-8.src
/freebsd-11-stable/share/monetdef/sl_SI.UTF-8.src
/freebsd-11-stable/share/monetdef/tr_TR.ISO8859-9.src
/freebsd-11-stable/share/monetdef/tr_TR.UTF-8.src
/freebsd-11-stable/share/monetdef/zh_CN.GB2312.src
/freebsd-11-stable/share/monetdef/zh_CN.GBK.src
/freebsd-11-stable/share/monetdef/zh_CN.UTF-8.src
/freebsd-11-stable/share/monetdef/zh_CN.eucCN.src
/freebsd-11-stable/share/monetdef/zh_TW.Big5.src
/freebsd-11-stable/share/monetdef/zh_TW.UTF-8.src
/freebsd-11-stable/share/msgdef/Makefile
/freebsd-11-stable/share/msgdef/he_IL.UTF-8.src
/freebsd-11-stable/share/msgdef/ja_JP.SJIS.src
/freebsd-11-stable/share/msgdef/ja_JP.UTF-8.src
/freebsd-11-stable/share/msgdef/ja_JP.eucJP.src
/freebsd-11-stable/share/msgdef/tr_TR.ISO8859-9.src
/freebsd-11-stable/share/msgdef/tr_TR.UTF-8.src
/freebsd-11-stable/share/numericdef/Makefile
/freebsd-11-stable/share/numericdef/hy_AM.UTF-8.src
etc/common.UTF-8.src
etc/final-maps/map.CP949
etc/final-maps/map.GB2312
etc/final-maps/map.UTF-8
302408 08-Jul-2016 gjb

Copy head@r302406 to stable/11 as part of the 11.0-RELEASE cycle.
Prune svn:mergeinfo from the new branch, as nothing has been merged
here.

Additional commits post-branch will follow.

Approved by: re (implicit)
Sponsored by: The FreeBSD Foundation


/freebsd-11-stable/MAINTAINERS
/freebsd-11-stable/cddl
/freebsd-11-stable/cddl/contrib/opensolaris
/freebsd-11-stable/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/print
/freebsd-11-stable/cddl/contrib/opensolaris/cmd/zfs
/freebsd-11-stable/cddl/contrib/opensolaris/lib/libzfs
/freebsd-11-stable/contrib/amd
/freebsd-11-stable/contrib/apr
/freebsd-11-stable/contrib/apr-util
/freebsd-11-stable/contrib/atf
/freebsd-11-stable/contrib/binutils
/freebsd-11-stable/contrib/bmake
/freebsd-11-stable/contrib/byacc
/freebsd-11-stable/contrib/bzip2
/freebsd-11-stable/contrib/com_err
/freebsd-11-stable/contrib/compiler-rt
/freebsd-11-stable/contrib/dialog
/freebsd-11-stable/contrib/dma
/freebsd-11-stable/contrib/dtc
/freebsd-11-stable/contrib/ee
/freebsd-11-stable/contrib/elftoolchain
/freebsd-11-stable/contrib/elftoolchain/ar
/freebsd-11-stable/contrib/elftoolchain/brandelf
/freebsd-11-stable/contrib/elftoolchain/elfdump
/freebsd-11-stable/contrib/expat
/freebsd-11-stable/contrib/file
/freebsd-11-stable/contrib/gcc
/freebsd-11-stable/contrib/gcclibs/libgomp
/freebsd-11-stable/contrib/gdb
/freebsd-11-stable/contrib/gdtoa
/freebsd-11-stable/contrib/groff
/freebsd-11-stable/contrib/ipfilter
/freebsd-11-stable/contrib/ldns
/freebsd-11-stable/contrib/ldns-host
/freebsd-11-stable/contrib/less
/freebsd-11-stable/contrib/libarchive
/freebsd-11-stable/contrib/libarchive/cpio
/freebsd-11-stable/contrib/libarchive/libarchive
/freebsd-11-stable/contrib/libarchive/libarchive_fe
/freebsd-11-stable/contrib/libarchive/tar
/freebsd-11-stable/contrib/libc++
/freebsd-11-stable/contrib/libc-vis
/freebsd-11-stable/contrib/libcxxrt
/freebsd-11-stable/contrib/libexecinfo
/freebsd-11-stable/contrib/libpcap
/freebsd-11-stable/contrib/libstdc++
/freebsd-11-stable/contrib/libucl
/freebsd-11-stable/contrib/libxo
/freebsd-11-stable/contrib/llvm
/freebsd-11-stable/contrib/llvm/projects/libunwind
/freebsd-11-stable/contrib/llvm/tools/clang
/freebsd-11-stable/contrib/llvm/tools/lldb
/freebsd-11-stable/contrib/llvm/tools/llvm-dwarfdump
/freebsd-11-stable/contrib/llvm/tools/llvm-lto
/freebsd-11-stable/contrib/mdocml
/freebsd-11-stable/contrib/mtree
/freebsd-11-stable/contrib/ncurses
/freebsd-11-stable/contrib/netcat
/freebsd-11-stable/contrib/ntp
/freebsd-11-stable/contrib/nvi
/freebsd-11-stable/contrib/one-true-awk
/freebsd-11-stable/contrib/openbsm
/freebsd-11-stable/contrib/openpam
/freebsd-11-stable/contrib/openresolv
/freebsd-11-stable/contrib/pf
/freebsd-11-stable/contrib/sendmail
/freebsd-11-stable/contrib/serf
/freebsd-11-stable/contrib/sqlite3
/freebsd-11-stable/contrib/subversion
/freebsd-11-stable/contrib/tcpdump
/freebsd-11-stable/contrib/tcsh
/freebsd-11-stable/contrib/tnftp
/freebsd-11-stable/contrib/top
/freebsd-11-stable/contrib/top/install-sh
/freebsd-11-stable/contrib/tzcode/stdtime
/freebsd-11-stable/contrib/tzcode/zic
/freebsd-11-stable/contrib/tzdata
/freebsd-11-stable/contrib/unbound
/freebsd-11-stable/contrib/vis
/freebsd-11-stable/contrib/wpa
/freebsd-11-stable/contrib/xz
/freebsd-11-stable/crypto/heimdal
/freebsd-11-stable/crypto/openssh
/freebsd-11-stable/crypto/openssl
/freebsd-11-stable/gnu/lib
/freebsd-11-stable/gnu/usr.bin/binutils
/freebsd-11-stable/gnu/usr.bin/cc/cc_tools
/freebsd-11-stable/gnu/usr.bin/gdb
/freebsd-11-stable/lib/libc/locale/ascii.c
/freebsd-11-stable/sys/cddl/contrib/opensolaris
/freebsd-11-stable/sys/contrib/dev/acpica
/freebsd-11-stable/sys/contrib/ipfilter
/freebsd-11-stable/sys/contrib/libfdt
/freebsd-11-stable/sys/contrib/octeon-sdk
/freebsd-11-stable/sys/contrib/x86emu
/freebsd-11-stable/sys/contrib/xz-embedded
/freebsd-11-stable/usr.sbin/bhyve/atkbdc.h
/freebsd-11-stable/usr.sbin/bhyve/bhyvegc.c
/freebsd-11-stable/usr.sbin/bhyve/bhyvegc.h
/freebsd-11-stable/usr.sbin/bhyve/console.c
/freebsd-11-stable/usr.sbin/bhyve/console.h
/freebsd-11-stable/usr.sbin/bhyve/pci_fbuf.c
/freebsd-11-stable/usr.sbin/bhyve/pci_xhci.c
/freebsd-11-stable/usr.sbin/bhyve/pci_xhci.h
/freebsd-11-stable/usr.sbin/bhyve/ps2kbd.c
/freebsd-11-stable/usr.sbin/bhyve/ps2kbd.h
/freebsd-11-stable/usr.sbin/bhyve/ps2mouse.c
/freebsd-11-stable/usr.sbin/bhyve/ps2mouse.h
/freebsd-11-stable/usr.sbin/bhyve/rfb.c
/freebsd-11-stable/usr.sbin/bhyve/rfb.h
/freebsd-11-stable/usr.sbin/bhyve/sockstream.c
/freebsd-11-stable/usr.sbin/bhyve/sockstream.h
/freebsd-11-stable/usr.sbin/bhyve/usb_emul.c
/freebsd-11-stable/usr.sbin/bhyve/usb_emul.h
/freebsd-11-stable/usr.sbin/bhyve/usb_mouse.c
/freebsd-11-stable/usr.sbin/bhyve/vga.c
/freebsd-11-stable/usr.sbin/bhyve/vga.h
302329 03-Jul-2016 bapt

Posixify the locales name for variants

For all locales with variants:
- if no ambiguity on the locale (only one variant) just use the regular name
- if ambiguity, pick one as default and append @<variant> to the others
respecting POSIX

As a result:
- All the 3 components locales added recently are renamed to the usual 2
components version for all but sr_RS.UTF-8
- Set sr_RS.UTF-8 to the cyrillic variant
- Add sr_RS.UTF-8@latin
- Remove the symlinks aliases they were created to represent the 2 components
version as aliasas and are now useless
- Update the OptionalObsoleteFiles.inc and ObsoleteFiles.inc to reflect those
changes

Discussed with: ache@
Approved by: re@ (gjb)


302026 20-Jun-2016 bapt

Fix generation of locales with multiple variants

Serbian locales have triple components to represent the 2 variations of the
locale: Latin and Cyrillic. Previously the tools generatic the locale were
appending both definitions instead of differentiating them.

Reported by: ache
Approved by: re (gjb)


302016 19-Jun-2016 ume

- Prefer to use %d over %e where the day of the month should be zero
filled.
- Since %e means the day of the month as well, regard %e as same as %d
in md_order.

Reported by: vangyzen
Approved by: re (gjb)


300975 29-May-2016 bapt

Add more hacks to correct CLDR data

For Russian:
- Convert AM/PM which are badly formatted in CLDR to replace it by the proper
cyrillic
- Add a dependency on Text::Iconv so non unicode get the proper encoding for
AM/PM
- fix the date format having 'r.,' and convert it to 'r.' (also fixed in Bulgarian)

For All:
- Use complete Day of Week instead of the abbreviated one

Reported by: ache


300913 28-May-2016 bapt

Add a hack to readd the day of weeks in default date formats


299080 04-May-2016 pfg

tools: minor spelling fix in locales template.

No functional change.


298146 17-Apr-2016 bapt

Remove leftover from Big5HKSCS removal


298124 16-Apr-2016 bapt

Do not forget to set the destination directory for the new collation


298119 16-Apr-2016 bapt

Readd the zh_hant_HK.UTF-8 removed by accident

Only Big5HKSCS as been removed.


298118 16-Apr-2016 bapt

Really stop converting map from UTF-8 to GB2312


298117 16-Apr-2016 bapt

Replace generated maps with maps extracted from CLDR for GB3212 and eucCN


298116 16-Apr-2016 bapt

Rework collation generation:

When building collation database for non unicode encodings use the proper
unicode mapping (this fixes collation not working properly for those encodings)

For locales where new characters are added but only for unicode, stop trying to
map the new characters, directly extract from CLDR the collation files for the
said encoding

Stop trying to generate encoding map from unicode version for GB2312 and encCN
It was not reliable. Instead use the map provide by the CLDR project

Reported by: ache


292512 20-Dec-2015 ume

Restore a day of the week in date(1) output for Japanese locales.
It was lost by recent locale change.


292468 19-Dec-2015 bapt

Fix indentation to make the script more readable


292467 19-Dec-2015 bapt

Initialize SRCOUT3 as it may be used unitilizard for certains types of locales


292466 19-Dec-2015 bapt

Use :E instead of regex in ctypedef Makefiles


292453 18-Dec-2015 bapt

Simplify the locale generated Makefiles by using bmake multi variables for loops


290928 16-Nov-2015 bapt

Bring back a couple of ISO8859-15 locales:
- af_ZA.ISO8859-15
- en_AU.ISO8859-15
- en_CA.ISO8859-15
- en_NZ.ISO8859-15
- en_US.ISO8859-15
- fr_CA.ISO8859-15


290865 15-Nov-2015 bapt

Generate in the FreeBSD keyword when generating the Makefiles


290864 15-Nov-2015 bapt

Add ISO8859-1 everywhere ISO8859-15 exists


290863 15-Nov-2015 bapt

Allow to generate the locale when the source directory is not /usr/src


290677 11-Nov-2015 bdrewery

Use explicit filename when creating locale symlinks to avoid creating a
directory symlink when the target directory does not exist. This will
cause an error instead of a broken setup.

Sponsored by: EMC / Isilon Storage Division


290625 09-Nov-2015 bapt

Add a README to explain how to generate the locales from CLDR data


290554 08-Nov-2015 bapt

Modify the tool that generates the locales so that the generated CJK locales
are padded as expected by the users

Submitted by: marino
Obtained from: DragonflyBSD


290494 07-Nov-2015 bapt

Improve collation string and locales support

Merge collation support from Illumos and DragonflyBSD.

Locales are now generated with the new localedef(1) tool from CLDR POSIX files.
The generated files are now identified as "BSD 1.0" format.

The libc now only read "BSD 1.0" locales definitions, all other version will be
set to "C"
The localedef(1) tool has been imported from Illumos and modified to use tree(3)
instead of the CDDL avl(3)
A set of tool created by edwin@ and extended by marino@ for dragonfly has been
added to be able to generate locales and the Makefiles from the vanilla CLDR
unicode databases + a universal UTF-8 charmap (by marino@)
Update the locales to unicode v27
Given our regex(3) does not support multibyte (yet) it has been forced to always
use locale C
Remove now unused colldef(1) and mklocale(1)
Finish implementing the numeric BSD extension for ctypes
The number of supported locales has grown from 175 to 250 locales. Among the new
locales: 6 Arabic locales (AE EG JO MA QA SA), Different variations of spanish
locales.
Added new 3 components locales for mn_Cyrl_MN, sr_Cyrl_RS sr_Latn_RS,
zh_Hans_CN, zh_Hant_HK and zh_Hant_TW. Some aliases has been for 2 components
version when possible.

Thanks: Garrett D'Amore (Illumos) who made sure all his work was done under
BSD license!, Edwin Groothuis (edwin@) for the work he made on tools to be able
to generate locales definition usable in freebsd sources out of vanilla CLDR
definitions, John Marino (DragonflyBSD) who first merge the Illumos work into
Dragonfly and spent hours tracking down bugs.


290242 01-Nov-2015 bapt

Make generated makefiles respects ${SHAREDIR}


289260 13-Oct-2015 bapt

Synchronize locale generation tools with dragonfly

generates the makefiles and the sources


286436 08-Aug-2015 bapt

Add FreeBSD keyword on generated Makefiles


286434 08-Aug-2015 bapt

Add set of tools created by edwin@ long time ago to generate locales
Those tools were modified and extended by John Marino <draco@marino.st>
Add the generated charmaps and maps for LC_CTYPE generation

Obtained from: Dragonfly