]> git.ipfire.org Git - thirdparty/gettext.git/commit
setlocale: Improve support for locales not supported by libc.
authorBruno Haible <bruno@clisp.org>
Sun, 16 Sep 2018 01:09:06 +0000 (03:09 +0200)
committerBruno Haible <bruno@clisp.org>
Sun, 16 Sep 2018 01:09:06 +0000 (03:09 +0200)
commitb0fb6a58fafe99b87558b2f053debef9749790d2
tree34989a1f8358ec847a539826232aa040192514a0
parent4fca7d35f0995b5f7362aa7c1ee28a7c90d7918e
setlocale: Improve support for locales not supported by libc.

Reported by Dapeng Gao <peter@dpgao.cc> at
<https://savannah.gnu.org/bugs/?54479>.

* gettext-runtime/intl/setlocale.c: Include <stdio.h>.
(libintl_setlocale): Use a more error-tolerant strategy when the locale to be
set is not supported by libc: Emit warnings instead of failing.
gettext-runtime/intl/setlocale.c