lede-packages-rs

git clone git://archive.git.mtrnord.blog/MTRNord/lede-packages-rs.git
Log | Files | Refs | README | LICENSE

commit cecee995b0ed69132b230fa605b99a3cafa1e5b7
parent afad97013910928fe32c569af2b56891302a79fc
Author: Marcel Denia <naoir@gmx.net>
Date:   Thu, 20 Aug 2015 00:12:16 +0200

perl: Disable setlocale usage under musl

While setlocale() is present, musl currently doesn't provide a suitable implementation.
It'll silently accept every locale, even if not present at all, defaulting them
to C.UTF-8. This will confuse applications as well as our testsuite(see lib/locale.t).

Even if a locale does exist, it's effects will not apply to an extent that will
satisfy many applications.

Avoid further mischief here and just disable setlocale() for now.

Signed-off-by: Marcel Denia <naoir@gmx.net>

Diffstat:
Mlang/perl/files/libc.config | 4++++
1 file changed, 4 insertions(+), 0 deletions(-)

diff --git a/lang/perl/files/libc.config b/lang/perl/files/libc.config @@ -12,6 +12,10 @@ } ($owrt:libc eq 'musl') { + # musl does not provide a working setlocale(). It accepts arbitrary locales + # and makes them act as if they were C.UTF-8. + d_setlocale='undef' + d_stdio_ptr_lval='undef' d_stdio_ptr_lval_sets_cnt='undef' d_stdiobase='undef'