]> git.ipfire.org Git - thirdparty/gcc.git/commit - libstdc++-v3/config/locale/gnu/c_locale.h
c_locale.h (__convert_from_v): Only switch to the "C" locale if the current one isn...
authorPaolo Carlini <pcarlini@suse.de>
Thu, 24 May 2007 14:49:45 +0000 (14:49 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Thu, 24 May 2007 14:49:45 +0000 (14:49 +0000)
commitf697c80d812418dc682407ed8b7d97123771c884
tree0c401c19e0b9e9e214b963754e8fc477f686f915
parentcb8b507b6593376bba81b344bc15d859f37c95ce
c_locale.h (__convert_from_v): Only switch to the "C" locale if the current one isn't already "C" (for old glibcs).

2007-05-24  Paolo Carlini  <pcarlini@suse.de>

* config/locale/gnu/c_locale.h (__convert_from_v): Only switch to the
"C" locale if the current one isn't already "C" (for old glibcs).
* config/os/gnu-linux/ctype_noninline.h (ctype<char>::classic_table,
ctype<char>::ctype(__c_locale, const mask*, bool, size_t),
ctype<char>::ctype(const mask*, bool, size_t)): Likewise, for generic
locale model.
* config/locale/gnu/messages_members.h
(messages<>::messages(__c_locale, const char*, size_t),
messages_byname<_CharT>::messages_byname(const char*, size_t)):
Only dynamically allocate memory if __s != "C".
* config/locale/gnu/time_members.h
(__timepunct<_CharT>::__timepunct(__c_locale, const char*, size_t)):
Likewise.
* config/locale/generic/time_members.h
(__timepunct<_CharT>::__timepunct(__c_locale, const char*, size_t)):
Likewise.

* testsuite/util/testsuite_allocator.h: Revert last change.

From-SVN: r125028
libstdc++-v3/ChangeLog
libstdc++-v3/config/locale/generic/time_members.h
libstdc++-v3/config/locale/gnu/c_locale.h
libstdc++-v3/config/locale/gnu/messages_members.h
libstdc++-v3/config/locale/gnu/time_members.h
libstdc++-v3/config/os/gnu-linux/ctype_noninline.h
libstdc++-v3/testsuite/util/testsuite_allocator.h