glibc/locale
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
..
bits Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
programs localedef: Add verbose messages for failure paths. 2020-04-26 13:55:58 -04:00
tst-localedef-path-norm.root localedef: Add verbose messages for failure paths. 2020-04-26 13:55:58 -04:00
broken_cur_max.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
C_name.c
C-address.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
C-collate.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
C-ctype.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
C-identification.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
C-measurement.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
C-messages.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
C-monetary.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
C-name.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
C-numeric.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
C-paper.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
C-telephone.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
C-time.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
C-translit.h.in Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
categories.def Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
coll-lookup.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
coll-lookup.h Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
duplocale.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
elem-hash.h Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
findlocale.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
freelocale.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
gen-translit.py Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
global-locale.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
hashval.h Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
indigits.h Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
indigitswc.h Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
iso-639.def Add mnw language code [BZ #25139] 2019-11-06 08:15:16 +01:00
iso-3166.def Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
iso-4217.def Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
langinfo.h Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
lc-address.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
lc-collate.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
lc-ctype.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
lc-identification.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
lc-measurement.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
lc-messages.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
lc-monetary.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
lc-name.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
lc-numeric.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
lc-paper.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
lc-telephone.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
lc-time.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
loadarchive.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
loadlocale.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
locale.h Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
localeconv.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
localeinfo.h Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
localename.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
locarchive.h Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
Makefile localedef: Add verbose messages for failure paths. 2020-04-26 13:55:58 -04:00
mb_cur_max.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
newlocale.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
nl_langinfo_l.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
nl_langinfo.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
outdigits.h Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
outdigitswc.h Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
setlocale.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
strlen-hash.h Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
SYS_libc.c [BZ #284, BZ #721] 2005-02-17 01:19:55 +00:00
tst-C-locale.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
tst-duplocale.c Add missing test files. 2009-11-17 16:23:57 -08:00
tst-locale-locpath.sh Fix locale/tst-locale-locpath cross-testing when sshd sets LANG. 2020-01-24 17:23:07 +00:00
tst-localedef-path-norm.c localedef: Add verbose messages for failure paths. 2020-04-26 13:55:58 -04:00
tst-locname.c Add missing test files. 2009-11-17 16:23:57 -08:00
uselocale.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
Versions
weight.h Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
weightwc.h Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
xlocale.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00