diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2011-05-03 10:34:25 +0000 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2011-05-03 10:34:25 +0000 |
commit | 3728c79d484e9fa62dc3306af076c31e998d2ab3 (patch) | |
tree | aeadff41c0a259ca14f7e818033f3a0d9736afbb /winsup/utils/locale.cc | |
parent | c402095aae0cc5bc6d059e0313bf0f59eaa106d8 (diff) | |
download | cygnal-3728c79d484e9fa62dc3306af076c31e998d2ab3.tar.gz cygnal-3728c79d484e9fa62dc3306af076c31e998d2ab3.tar.bz2 cygnal-3728c79d484e9fa62dc3306af076c31e998d2ab3.zip |
* locale.cc (print_locale_with_codeset): Align printing of locale names
to POSIX.
Diffstat (limited to 'winsup/utils/locale.cc')
-rw-r--r-- | winsup/utils/locale.cc | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/winsup/utils/locale.cc b/winsup/utils/locale.cc index d6d1064a7..30568f638 100644 --- a/winsup/utils/locale.cc +++ b/winsup/utils/locale.cc @@ -1,5 +1,5 @@ /* - * Copyright (c) 2010, Corinna Vinschen + * Copyright (c) 2010, 2011 Corinna Vinschen * All rights reserved. * * Redistribution and use in source and binary forms, with or without @@ -137,17 +137,18 @@ print_locale_with_codeset (int verbose, loc_t *locale, bool utf8, modifier ? "@" : "", modifier ?: ""); if (verbose) fputs ("locale: ", stdout); - printf ("%-15s ", locname); if (verbose) { + printf ("%-15s ", locname); printf ("archive: %s\n", locale->alias ? LOCALE_ALIAS : sysroot); puts ("-------------------------------------------------------------------------------"); printf (" language | %ls\n", locale->language); printf ("territory | %ls\n", locale->territory); - printf (" codeset | %s\n", utf8 ? "UTF-8" : locale->codeset); + printf (" codeset | %s\n\n", utf8 ? "UTF-8" : locale->codeset); } - putc ('\n', stdout); + else + printf ("%s\n", locname); } void |