]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
2004-04-12 Paolo Carlini <pcarlini@suse.de>
authorPaolo Carlini <pcarlini@suse.de>
Mon, 12 Apr 2004 08:36:23 +0000 (08:36 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Mon, 12 Apr 2004 08:36:23 +0000 (08:36 +0000)
* config/locale/gnu/numeric_members.cc
(numpunct<wchar_t>::_M_initialize_numpunct): No need to wrap
in __uselocale, since btowc is called for chars belonging to
the basic character set.

From-SVN: r80618

libstdc++-v3/ChangeLog
libstdc++-v3/config/locale/gnu/numeric_members.cc

index 40d7eb500506d12eb89bfe6a6858f175641f5095..9e545ce8bc3d4343ad00272c9e2264cb4462a8ca 100644 (file)
@@ -1,3 +1,10 @@
+2004-04-12  Paolo Carlini <pcarlini@suse.de>
+
+       * config/locale/gnu/numeric_members.cc
+       (numpunct<wchar_t>::_M_initialize_numpunct): No need to wrap
+       in __uselocale, since btowc is called for chars belonging to
+       the basic character set.
+
 2004-04-09  Paolo Carlini  <pcarlini@suse.de>
 
        * testsuite/22_locale/messages/members/char/1.cc: Remove junk.
index 02b57b4635ea8128848af3ead2db6bd95515f790..ef1f5bf5703a06ed21f5a16bab35b934c9868aa4 100644 (file)
@@ -106,9 +106,6 @@ namespace std
          _M_data->_M_decimal_point = L'.';
          _M_data->_M_thousands_sep = L',';
 
-#if __GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ > 2)
-         __c_locale __old = __uselocale(_S_get_c_locale());
-#endif
          // Use ctype::widen code without the facet...
          unsigned char uc;
          for (size_t __i = 0; __i < __num_base::_S_oend; ++__i)
@@ -122,9 +119,6 @@ namespace std
              uc = static_cast<unsigned char>(__num_base::_S_atoms_in[__i]);
              _M_data->_M_atoms_in[__i] = btowc(uc);
            }
-#if __GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ > 2)
-         __uselocale(__old);
-#endif
        }
       else
        {