diff options
author | Paolo Carlini <pcarlini@suse.de> | 2003-10-16 20:36:45 +0000 |
---|---|---|
committer | Paolo Carlini <paolo@gcc.gnu.org> | 2003-10-16 20:36:45 +0000 |
commit | 0392ff984f60984764d886368baf9627d803bca8 (patch) | |
tree | 365c36fdec3cb71424580006cc024f75fba50ed3 /libstdc++-v3 | |
parent | d2f663d1090eec9f77906407fae9e8c41609f64a (diff) | |
download | gcc-0392ff984f60984764d886368baf9627d803bca8.zip gcc-0392ff984f60984764d886368baf9627d803bca8.tar.gz gcc-0392ff984f60984764d886368baf9627d803bca8.tar.bz2 |
locale.cc (locale::locale(const char*)): ...
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
Diffstat (limited to 'libstdc++-v3')
-rw-r--r-- | libstdc++-v3/ChangeLog | 5 | ||||
-rw-r--r-- | libstdc++-v3/src/locale.cc | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index 258a570..494f5bf 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -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. diff --git a/libstdc++-v3/src/locale.cc b/libstdc++-v3/src/locale.cc index c652540..80bce52 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); |