glibc/locale/programs
Carlos O'Donell 92954ffa5a localedef: Add verbose messages for failure paths.
During testing of localedef running in a minimal container
there were several error cases which were hard to diagnose
since they appeared as strerror (errno) values printed by the
higher level functions.  This change adds three new verbose
messages for potential failure paths.  The new messages give
the user the opportunity to use -v and display additional
information about why localedef might be failing.  I found
these messages useful myself while writing a localedef
container test for --no-hard-links.

Since the changes cleanup the code that handle codeset
normalization we add tst-localedef-path-norm which contains
many sub-tests to verify the correct expected normalization of
codeset strings both when installing to default paths (the
only time normalization is enabled) and installing to absolute
paths.  During the refactoring I created at least one
buffer-overflow which valgrind caught, but these tests did not
catch because the exec in the container had a very clean heap
with zero-initialized memory. However, between valgrind and
the tests the results are clean.

The new tst-localedef-path-norm passes without regression on
x86_64.

Change-Id: I28b9f680711ff00252a2cb15625b774cc58ecb9d
2020-04-26 13:55:58 -04:00
..
3level.h Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
charmap-dir.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
charmap-dir.h Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
charmap-kw.gperf Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
charmap-kw.h Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
charmap.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
charmap.h Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
config.h Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
ld-address.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
ld-collate.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
ld-ctype.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
ld-identification.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
ld-measurement.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
ld-messages.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
ld-monetary.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
ld-name.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
ld-numeric.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
ld-paper.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
ld-telephone.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
ld-time.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
linereader.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
linereader.h Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
locale-spec.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
locale.c Update copyright dates not handled by scripts/update-copyrights. 2020-01-01 00:21:22 +00:00
localedef.c localedef: Add verbose messages for failure paths. 2020-04-26 13:55:58 -04:00
localedef.h localedef: Add verbose messages for failure paths. 2020-04-26 13:55:58 -04:00
locarchive.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
locfile-kw.gperf Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
locfile-kw.h Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
locfile-token.h Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
locfile.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
locfile.h Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
record-status.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
record-status.h Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
repertoire.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
repertoire.h Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
simple-hash.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
simple-hash.h Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
xasprintf.c localedef: Add verbose messages for failure paths. 2020-04-26 13:55:58 -04:00
xmalloc.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
xstrdup.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00