mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-01-01 14:52:14 +01:00
21 lines
500 B
Diff
21 lines
500 B
Diff
--- ./lib/misc/codesetOld.c.orig
|
|
+++ ./lib/misc/codesetOld.c
|
|
@@ -723,7 +723,7 @@
|
|
{
|
|
char *codeset;
|
|
|
|
-#if defined(__linux__)
|
|
+#if defined(__linux__) && !defined(__UCLIBC__)
|
|
|
|
locale_t new = newlocale(LC_CTYPE_MASK, "", NULL);
|
|
if (!new) {
|
|
@@ -739,7 +739,7 @@
|
|
codeset = Util_SafeStrdup(nl_langinfo_l(CODESET, new));
|
|
freelocale(new);
|
|
|
|
-#elif defined(sun)
|
|
+#elif defined(sun) || defined(__UCLIBC__)
|
|
|
|
char *locale = setlocale(LC_CTYPE, NULL);
|
|
if (!setlocale(LC_CTYPE, "")) {
|