freebsd-skq/usr.bin/localedef
tmunro b454726096 Add collation version support to querylocale(3).
Provide a way to ask for an opaque version string for a locale_t, so
that potential changes in sort order can be detected.  Similar to
ICU's ucol_getVersion() and Windows' GetNLSVersionEx(), this API is
intended to allow databases to detect when text order-based indexes
might need to be rebuilt.

The CLDR version is extracted from CLDR source data by the Makefile
under tools/tools/locale, written into the machine-generated Makefile
under shared/colldef, passed to localedef -V, and then written into
LC_COLLATE file headers.  The initial version is 34.0.
tools/tools/locale was recently updated to pull down 35.0, but the
output hasn't been committed under share/colldef yet, so that will
provide the first observable change when it happens.  Other versioning
schemes are possible in future, because the format is unspecified.

Reviewed by:	bapt, 0mp, kib, yuripv (albeit a long time ago)
Differential Revision:	https://reviews.freebsd.org/D17166
2020-11-08 02:50:34 +00:00
..
bootstrap Add collation version support to querylocale(3). 2020-11-08 02:50:34 +00:00
charmap.c localedef(1): remove duplicated includes. 2018-07-09 20:38:47 +00:00
collate.c Add collation version support to querylocale(3). 2020-11-08 02:50:34 +00:00
ctype.c Allow bootstrapping localdef on non-FreeBSD systems 2020-07-15 12:07:59 +00:00
localedef.1 Add collation version support to querylocale(3). 2020-11-08 02:50:34 +00:00
localedef.c Add collation version support to querylocale(3). 2020-11-08 02:50:34 +00:00
localedef.h Add collation version support to querylocale(3). 2020-11-08 02:50:34 +00:00
Makefile Only set WARNS if not defined 2020-09-11 13:28:37 +00:00
Makefile.depend
messages.c
monetary.c
numeric.c
parser.y
README
scanner.c
time.c
wide.c

While there are tools called "localedef" in Solaris and Linux, this
tool does not share heritage with any other implementation.  It was
written independently by Garrett D'Amore while employed at Nexenta
Systems, and thus carries the Nexenta Copyright.

It was initially released under the CDDL license, but on 4 July 2014,
Nexenta reissued the source under the BSD 2-clause license.  This
code is part of the Illumos project.

see:
https://github.com/Nexenta/illumos-nexenta/commit/cf17542a37fc83d0ae093777e30d480423858c29