aboutsummaryrefslogtreecommitdiff
path: root/repos/extra/musl-locales/default-locpath.patch
diff options
context:
space:
mode:
Diffstat (limited to 'repos/extra/musl-locales/default-locpath.patch')
-rw-r--r--repos/extra/musl-locales/default-locpath.patch12
1 files changed, 12 insertions, 0 deletions
diff --git a/repos/extra/musl-locales/default-locpath.patch b/repos/extra/musl-locales/default-locpath.patch
new file mode 100644
index 00000000..ad6b1143
--- /dev/null
+++ b/repos/extra/musl-locales/default-locpath.patch
@@ -0,0 +1,12 @@
+diff --git a/locale.c b/locale.c
+index ede426d..856ae30 100644
+--- a/locale.c
++++ b/locale.c
+@@ -105,6 +105,7 @@ static int argp_parse(int argc, char *argv[])
+ static void list_locale()
+ {
+ const char *locpath = getenv("MUSL_LOCPATH");
++ if (locpath == NULL) locpath = "/usr/share/i18n/locales/musl";
+ printf("C\n");
+ printf("C.UTF-8\n");
+ if(locpath != NULL)