diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index 258a5700a10..494f5bf4e40 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,3 +1,8 @@ +2003-10-16 Paolo Carlini + + * src/locale.cc (locale::locale(const char*)): ... one + more comparison missed in the previous commit. + 2003-10-16 Benjamin Kosnik * acconfig.h: Add HAVE_DRAND48 and HAVE_ISATTY. diff --git a/libstdc++-v3/src/locale.cc b/libstdc++-v3/src/locale.cc index c6525405211..80bce52b47d 100644 --- a/libstdc++-v3/src/locale.cc +++ b/libstdc++-v3/src/locale.cc @@ -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);