locale.cc (locale::locale(const char*)): ...
authorPaolo Carlini <pcarlini@suse.de>
Thu, 16 Oct 2003 20:36:45 +0000 (20:36 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Thu, 16 Oct 2003 20:36:45 +0000 (20:36 +0000)
2003-10-16  Paolo Carlini  <pcarlini@suse.de>

* src/locale.cc (locale::locale(const char*)): ... one
more comparison missed in the previous commit.

From-SVN: r72574

libstdc++-v3/ChangeLog
libstdc++-v3/src/locale.cc

index 258a5700a10bfe04fad969a3a1bbfc6901bedd43..494f5bf4e40fc62c77e0ec883464ed79f88181c9 100644 (file)
@@ -1,3 +1,8 @@
+2003-10-16  Paolo Carlini  <pcarlini@suse.de>
+
+       * src/locale.cc (locale::locale(const char*)): ... one
+       more comparison missed in the previous commit.
+
 2003-10-16  Benjamin Kosnik  <bkoz@redhat.com>
 
         * acconfig.h: Add HAVE_DRAND48 and HAVE_ISATTY.
index c6525405211ebeefcc594d11338bc59158d7cbb8..80bce52b47d918ceb2667631e7000a67a5e43ed7 100644 (file)
@@ -285,7 +285,7 @@ namespace std
                  }
                // ... otherwise either an additional instance of
                // the "C" locale or LANG.
-               else if (std::strcmp(__res.c_str(), "C") == 0)
+               else if (__res == "C")
                  (_M_impl = _S_classic)->_M_add_reference();
                else
                  _M_impl = new _Impl(__res.c_str(), 1);