setlocale: Improve support for locales not supported by libc.
commit6321552c0e6cc7a4f32930cdf445ad249a5d01f8
authorBruno Haible <bruno@clisp.org>
Sun, 16 Sep 2018 01:15:54 +0000 (16 03:15 +0200)
committerBruno Haible <bruno@clisp.org>
Sun, 16 Sep 2018 01:15:54 +0000 (16 03:15 +0200)
treeef6fba1df2ee81d1a0fc4f0b3a95681712f288f6
parent8e858b1bb35cee5d228c38aa4e0a0704f3853dec
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.
ChangeLog
lib/setlocale.c