aboutsummaryrefslogtreecommitdiff
path: root/repos/extra/musl-locales/default-locpath.patch
blob: ad6b114376d36e87fd38aa31338dc0067cc02471 (plain)
1
2
3
4
5
6
7
8
9
10
11
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)