aboutsummaryrefslogtreecommitdiff
path: root/repos/core/musl/default-locpath.patch
diff options
context:
space:
mode:
Diffstat (limited to 'repos/core/musl/default-locpath.patch')
-rw-r--r--repos/core/musl/default-locpath.patch14
1 files changed, 14 insertions, 0 deletions
diff --git a/repos/core/musl/default-locpath.patch b/repos/core/musl/default-locpath.patch
new file mode 100644
index 00000000..a6080d44
--- /dev/null
+++ b/repos/core/musl/default-locpath.patch
@@ -0,0 +1,14 @@
+--- a/src/locale/locale_map.c 2024-05-12 20:33:15.000000000 +0100
++++ b/src/locale/locale_map.c 2024-05-20 22:53:02.685916344 +0100
+@@ -64,7 +64,10 @@
+ if (!strcmp(val, p->name)) return p;
+
+ if (!libc.secure) path = getenv("MUSL_LOCPATH");
+- /* FIXME: add a default path? */
++ if (!path) {
++ // Provided by musl-locales
++ path = "/usr/share/i18n/locales/musl";
++ }
+
+ if (path) for (; *path; path=z+!!*z) {
+ z = __strchrnul(path, ':');