about summary refs log tree commit diff
path: root/src/locale/langinfo.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/locale/langinfo.c')
-rw-r--r--src/locale/langinfo.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/locale/langinfo.c b/src/locale/langinfo.c
index 7bb56eed..13abf45b 100644
--- a/src/locale/langinfo.c
+++ b/src/locale/langinfo.c
@@ -1,5 +1,6 @@
 #include <locale.h>
 #include <langinfo.h>
+#include "locale_impl.h"
 #include "libc.h"
 
 static const char c_time[] =
@@ -60,7 +61,7 @@ char *__nl_langinfo_l(nl_item item, locale_t loc)
 
 char *__nl_langinfo(nl_item item)
 {
-	return __nl_langinfo_l(item, 0);
+	return __nl_langinfo_l(item, CURRENT_LOCALE);
 }
 
 weak_alias(__nl_langinfo, nl_langinfo);