diff options
| author | emmett1 <emmett1.2miligrams@protonmail.com> | 2025-03-05 07:36:14 +0800 |
|---|---|---|
| committer | emmett1 <emmett1.2miligrams@protonmail.com> | 2025-03-05 07:36:14 +0800 |
| commit | 20c42905dc7176289ee3abb927d8f6aec9aed7cc (patch) | |
| tree | 1d61d06d249690b3e08fa3ed7ea12869ac6d25be /repos/core/musl/default-locpath.patch | |
| parent | 470811bb10b21e4508deff506d0ea02eca1f405d (diff) | |
| download | alicelinux-20c42905dc7176289ee3abb927d8f6aec9aed7cc.tar.gz alicelinux-20c42905dc7176289ee3abb927d8f6aec9aed7cc.zip | |
musl: added default-locpath.patch
Diffstat (limited to 'repos/core/musl/default-locpath.patch')
| -rw-r--r-- | repos/core/musl/default-locpath.patch | 14 |
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, ':'); |