void-packages/srcpkgs/musl/patches/no-utf8-code-units-locale.patch
Juan RP ee35e3a806 musl: fix help2man and others erroring out with invalid locale UTF-8-CODE-UNITS.
This happened when the code incorrectly used the C locale, which on musl is just
UTF-8.

Close #2425
2015-09-01 08:44:22 +02:00

15 lines
503 B
Diff

Temporary fix for https://github.com/voidlinux/void-packages/issues/2425
@dalias affirmed that returning UTF-8 even when requesting C locale is just fine.
--- src/locale/langinfo.c.orig 2015-09-01 08:41:59.830797631 +0200
+++ src/locale/langinfo.c 2015-09-01 08:42:15.324966247 +0200
@@ -34,7 +34,7 @@ char *__nl_langinfo_l(nl_item item, loca
const char *str;
if (item == CODESET)
- return MB_CUR_MAX==1 ? "UTF-8-CODE-UNITS" : "UTF-8";
+ return "UTF-8";
switch (cat) {
case LC_NUMERIC: