aboutsummaryrefslogtreecommitdiff
path: root/locale/programs/locale.c
diff options
context:
space:
mode:
Diffstat (limited to 'locale/programs/locale.c')
-rw-r--r--locale/programs/locale.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/locale/programs/locale.c b/locale/programs/locale.c
index 8254289..41c7b1d 100644
--- a/locale/programs/locale.c
+++ b/locale/programs/locale.c
@@ -196,6 +196,10 @@ main (int argc, char *argv[])
exit (EXIT_SUCCESS);
}
+ /* Specific information about the current locale are requested.
+ Change to this locale now. */
+ setlocale (LC_ALL, "");
+
/* If no real argument is given we have to print the contents of the
current locale definition variables. These are LANG and the LC_*. */
if (optind == argc && show_keyword_name == 0 && show_category_name == 0)