alicelinux

A lightweight musl + clang/llvm + libressl + busybox distro
git clone https://codeberg.org/emmett1/alicelinux
Log | Files | Refs | README | LICENSE

default-locpath.patch (445B)


      1 --- a/src/locale/locale_map.c	2024-05-12 20:33:15.000000000 +0100
      2 +++ b/src/locale/locale_map.c	2024-05-20 22:53:02.685916344 +0100
      3 @@ -64,7 +64,10 @@
      4  		if (!strcmp(val, p->name)) return p;
      5  
      6  	if (!libc.secure) path = getenv("MUSL_LOCPATH");
      7 -	/* FIXME: add a default path? */
      8 +	if (!path) {
      9 +		// Provided by musl-locales
     10 +		path = "/usr/share/i18n/locales/musl";
     11 +	}
     12  
     13  	if (path) for (; *path; path=z+!!*z) {
     14  		z = __strchrnul(path, ':');