2002-08-03 Roland McGrath <roland@redhat.com>
authorroland <roland>
Sun, 4 Aug 2002 01:41:39 +0000 (01:41 +0000)
committerroland <roland>
Sun, 4 Aug 2002 01:41:39 +0000 (01:41 +0000)
commit1e617f412b62deda816042fde3e0653bca07089b
tree1cc0e84f5c561f8d3276794774e69ee8de5b27ce
parentb771b9c6e5598530f715bc1d1d5578dbe3cc82af
2002-08-03  Roland McGrath  <roland@redhat.com>

* locale/setlocale.c (_nl_current_names): Variable moved ...
* locale/localename.c (_nl_current_names): ... here, new file.
Make it global, with attribute_hidden.
* locale/localeinfo.h: Declare it.
* locale/Makefile (aux): Add localename.
* locale/localename.c (__current_locale_name): New function.
* include/locale.h (__current_locale_name): Declare it.
* intl/dcigettext.c (guess_category_value): Use that instead of
calling setlocale.
* include/locale.h: Use libc_hidden_proto for setlocale.
* locale/setlocale.c: Add libc_hidden_def.
include/locale.h