2
0
mirror of git://sourceware.org/git/glibc.git synced 2025-04-06 14:10:30 +08:00
Arjun Shankar fe62c4d173 intl: Handle translation output codesets with suffixes [BZ ]
Commit 91927b7c7643 (Rewrite iconv option parsing [BZ ]) did not
handle cases where the output codeset for translations (via the `gettext'
family of functions) might have a caller specified encoding suffix such as
TRANSLIT or IGNORE.  This led to a regression where translations did not
work when the codeset had a suffix.

This commit fixes the above issue by parsing any suffixes passed to
__dcigettext and adds two new test-cases to intl/tst-codeset.c to
verify correct behaviour.  The iconv-internal function __gconv_create_spec
and the static iconv-internal function gconv_destroy_spec are now visible
internally within glibc and used in intl/dcigettext.c.

(cherry picked from commit 7d4ec75e111291851620c6aa2c4460647b7fd50d)
2020-09-25 14:57:32 +02:00
..