mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-25 14:30:06 +00:00
92954ffa5a
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 |
||
---|---|---|
.. | ||
3level.h | ||
charmap-dir.c | ||
charmap-dir.h | ||
charmap-kw.gperf | ||
charmap-kw.h | ||
charmap.c | ||
charmap.h | ||
config.h | ||
ld-address.c | ||
ld-collate.c | ||
ld-ctype.c | ||
ld-identification.c | ||
ld-measurement.c | ||
ld-messages.c | ||
ld-monetary.c | ||
ld-name.c | ||
ld-numeric.c | ||
ld-paper.c | ||
ld-telephone.c | ||
ld-time.c | ||
linereader.c | ||
linereader.h | ||
locale-spec.c | ||
locale.c | ||
localedef.c | ||
localedef.h | ||
locarchive.c | ||
locfile-kw.gperf | ||
locfile-kw.h | ||
locfile-token.h | ||
locfile.c | ||
locfile.h | ||
record-status.c | ||
record-status.h | ||
repertoire.c | ||
repertoire.h | ||
simple-hash.c | ||
simple-hash.h | ||
xasprintf.c | ||
xmalloc.c | ||
xstrdup.c |