about summary refs log tree commit diff
path: root/src/locale
diff options
context:
space:
mode:
Diffstat (limited to 'src/locale')
-rw-r--r--src/locale/langinfo.c1
-rw-r--r--src/locale/strerror_l.c7
2 files changed, 1 insertions, 7 deletions
diff --git a/src/locale/langinfo.c b/src/locale/langinfo.c
index aa0e8de6..a1ada246 100644
--- a/src/locale/langinfo.c
+++ b/src/locale/langinfo.c
@@ -57,6 +57,7 @@ char *__nl_langinfo_l(nl_item item, locale_t loc)
 	}
 
 	for (; idx; idx--, str++) for (; *str; str++);
+	if (cat != LC_NUMERIC && *str) str = LCTRANS(str, cat, loc);
 	return (char *)str;
 }
 
diff --git a/src/locale/strerror_l.c b/src/locale/strerror_l.c
deleted file mode 100644
index 765f5c69..00000000
--- a/src/locale/strerror_l.c
+++ /dev/null
@@ -1,7 +0,0 @@
-#include <string.h>
-#include <locale.h>
-
-char *strerror_l(int err, locale_t l)
-{
-	return strerror(err);
-}