about summary refs log tree commit diff
path: root/locale/localename.c
diff options
context:
space:
mode:
Diffstat (limited to 'locale/localename.c')
-rw-r--r--locale/localename.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/locale/localename.c b/locale/localename.c
index 045cc712d2..377ec296a6 100644
--- a/locale/localename.c
+++ b/locale/localename.c
@@ -34,9 +34,7 @@ const char *
 attribute_hidden
 __current_locale_name (int category)
 {
-#if 0
-  return _NL_CURRENT_DATA (category)->name;
-#else
-  return _nl_current_names[category];
-#endif
+  return (_NL_CURRENT_LOCALE == &_nl_global_locale
+	  ? _nl_current_names[category]
+	  : _NL_CURRENT_LOCALE->__locales[category]->name);
 }