mirror of
https://sourceware.org/git/glibc.git
synced 2024-12-22 10:50:07 +00:00
Update.
2004-02-12 Ulrich Drepper <drepper@redhat.com> * locale/programs/locale.c (show_locale_vars): Don't print a value for LANG if it is not set.
This commit is contained in:
parent
6c2a04a7e8
commit
02860e4781
@ -1,3 +1,8 @@
|
||||
2004-02-12 Ulrich Drepper <drepper@redhat.com>
|
||||
|
||||
* locale/programs/locale.c (show_locale_vars): Don't print a value
|
||||
for LANG if it is not set.
|
||||
|
||||
2004-02-11 Jakub Jelinek <jakub@redhat.com>
|
||||
|
||||
* posix/regexec.c (check_node_accept_bytes): Return 0 if char_len is 0.
|
||||
|
@ -769,7 +769,7 @@ show_locale_vars (void)
|
||||
{
|
||||
size_t cat_no;
|
||||
const char *lcall = getenv ("LC_ALL");
|
||||
const char *lang = getenv ("LANG") ? : "POSIX";
|
||||
const char *lang = getenv ("LANG") ? : "";
|
||||
|
||||
auto void get_source (const char *name);
|
||||
|
||||
@ -778,7 +778,8 @@ show_locale_vars (void)
|
||||
char *val = getenv (name);
|
||||
|
||||
if ((lcall ?: "")[0] != '\0' || val == NULL)
|
||||
printf ("%s=\"%s\"\n", name, (lcall ?: "")[0] ? lcall : lang);
|
||||
printf ("%s=\"%s\"\n", name,
|
||||
(lcall ?: "")[0] ? lcall : (lang ?: "")[0] ? lang : "POSIX");
|
||||
else
|
||||
printf ("%s=%s\n", name, val);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user