[PATCH] locale: Fix localedef exit code [BZ #22292]
Florian Weimer
fweimer@redhat.com
Mon Oct 16 07:24:00 GMT 2017
On 10/15/2017 11:19 PM, Carlos O'Donell wrote:
> (b) Do not make ASCII compatibility a warning. See the large comment
> in locale/programs/charmap.c line ~205. It would appear that the
> SHIFT_JIS* charmaps violate this ISO C requirement, which could
> cause problems for some programs, thus the warning
> (in localedata/gen-locale.sh I work around this for SHIFT_SJIS
> for testing shift charmaps).
Running a system with Shift JIS may introduce security vulnerabilities
because parts of the system will disagree where string literals end, due
different interpretations of the 0x5c codepoint.
I think we should add a command line argument to localedef which turns
off returning exit status 1 for locales which are not ASCII-compatible.
Thanks,
Florian
More information about the Libc-alpha
mailing list