glibc/locale/programs
Carlos O'Donell 2ab8b74567 localedef: Update LC_MONETARY handling (Bug 28845)
ISO C17, POSIX Issue 7, and ISO 30112 all allow the char*
types to be empty strings i.e. "", integer or char values to
be -1 or CHAR_MAX respectively, with the exception of
decimal_point which must be non-empty in ISO C. Note that
the defaults for mon_grouping vary, but are functionaly
equivalent e.g. "\177" (no further grouping reuqired) vs.
"" (no grouping defined for all groups).

We include a broad comment talking about harmonizing ISO C,
POSIX, ISO 30112, and the default C/POSIX locale for glibc.

We reorder all setting based on locale/categories.def order.

We soften all missing definitions from errors to warnings when
defaults exist.

Given that ISO C, POSIX and ISO 30112 allow the empty string
we change LC_MONETARY handling of mon_decimal_point to allow
the empty string.  If mon_decimal_point is not defined at all
then we pick the existing legacy glibc default value of
<U002E> i.e. ".".

We also set the default for mon_thousands_sep_wc at the
same time as mon_thousands_sep, but this is not a change in
behaviour, it is always either a matching value or L'\0',
but if in the future we change the default to a non-empty
string we would need to update both at the same time.

Tested on x86_64 and i686 without regressions.
Tested with install-locale-archive target.
Tested with install-locale-files target.

Reviewed-by: DJ Delorie <dj@redhat.com>
2022-02-25 07:31:27 -05:00
..
3level.h Update copyright dates with scripts/update-copyrights 2022-01-01 11:40:24 -08:00
charmap-dir.c Update copyright dates with scripts/update-copyrights 2022-01-01 11:40:24 -08:00
charmap-dir.h Update copyright dates with scripts/update-copyrights 2022-01-01 11:40:24 -08:00
charmap-kw.gperf Update copyright dates with scripts/update-copyrights 2022-01-01 11:40:24 -08:00
charmap-kw.h Update automatically-generated copyright dates 2022-01-01 11:42:26 -08:00
charmap.c Update copyright dates with scripts/update-copyrights 2022-01-01 11:40:24 -08:00
charmap.h Update copyright dates with scripts/update-copyrights 2022-01-01 11:40:24 -08:00
config.h Update copyright dates with scripts/update-copyrights 2022-01-01 11:40:24 -08:00
ld-address.c Update copyright dates with scripts/update-copyrights 2022-01-01 11:40:24 -08:00
ld-collate.c Update copyright dates with scripts/update-copyrights 2022-01-01 11:40:24 -08:00
ld-ctype.c Update copyright dates with scripts/update-copyrights 2022-01-01 11:40:24 -08:00
ld-identification.c Update copyright dates with scripts/update-copyrights 2022-01-01 11:40:24 -08:00
ld-measurement.c Update copyright dates with scripts/update-copyrights 2022-01-01 11:40:24 -08:00
ld-messages.c Update copyright dates with scripts/update-copyrights 2022-01-01 11:40:24 -08:00
ld-monetary.c localedef: Update LC_MONETARY handling (Bug 28845) 2022-02-25 07:31:27 -05:00
ld-name.c Update copyright dates with scripts/update-copyrights 2022-01-01 11:40:24 -08:00
ld-numeric.c Update copyright dates with scripts/update-copyrights 2022-01-01 11:40:24 -08:00
ld-paper.c Update copyright dates with scripts/update-copyrights 2022-01-01 11:40:24 -08:00
ld-telephone.c Update copyright dates with scripts/update-copyrights 2022-01-01 11:40:24 -08:00
ld-time.c Update copyright dates with scripts/update-copyrights 2022-01-01 11:40:24 -08:00
linereader.c Update copyright dates with scripts/update-copyrights 2022-01-01 11:40:24 -08:00
linereader.h Update copyright dates with scripts/update-copyrights 2022-01-01 11:40:24 -08:00
locale-spec.c Update copyright dates with scripts/update-copyrights 2022-01-01 11:40:24 -08:00
locale.c Update copyright dates not handled by scripts/update-copyrights. 2022-01-01 11:42:26 -08:00
localedef.c Update copyright dates not handled by scripts/update-copyrights. 2022-01-01 11:42:26 -08:00
localedef.h Update copyright dates with scripts/update-copyrights 2022-01-01 11:40:24 -08:00
locarchive.c localedef: Handle symbolic links when generating locale-archive 2022-02-24 22:45:05 +01:00
locfile-kw.gperf Update copyright dates with scripts/update-copyrights 2022-01-01 11:40:24 -08:00
locfile-kw.h Update automatically-generated copyright dates 2022-01-01 11:42:26 -08:00
locfile-token.h Update copyright dates with scripts/update-copyrights 2022-01-01 11:40:24 -08:00
locfile.c Update copyright dates with scripts/update-copyrights 2022-01-01 11:40:24 -08:00
locfile.h Update copyright dates with scripts/update-copyrights 2022-01-01 11:40:24 -08:00
record-status.c Update copyright dates with scripts/update-copyrights 2022-01-01 11:40:24 -08:00
record-status.h Update copyright dates with scripts/update-copyrights 2022-01-01 11:40:24 -08:00
repertoire.c Update copyright dates with scripts/update-copyrights 2022-01-01 11:40:24 -08:00
repertoire.h Update copyright dates with scripts/update-copyrights 2022-01-01 11:40:24 -08:00
simple-hash.c Update copyright dates with scripts/update-copyrights 2022-01-01 11:40:24 -08:00
simple-hash.h Update copyright dates with scripts/update-copyrights 2022-01-01 11:40:24 -08:00
xasprintf.c Update copyright dates with scripts/update-copyrights 2022-01-01 11:40:24 -08:00
xmalloc.c Update copyright dates with scripts/update-copyrights 2022-01-01 11:40:24 -08:00
xstrdup.c Update copyright dates with scripts/update-copyrights 2022-01-01 11:40:24 -08:00