From 20c42905dc7176289ee3abb927d8f6aec9aed7cc Mon Sep 17 00:00:00 2001 From: emmett1 Date: Wed, 5 Mar 2025 07:36:14 +0800 Subject: musl: added default-locpath.patch --- repos/core/musl/default-locpath.patch | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 repos/core/musl/default-locpath.patch (limited to 'repos/core/musl/default-locpath.patch') 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, ':'); -- cgit v1.2.3