aboutsummaryrefslogtreecommitdiff
path: root/libstdc++-v3
diff options
context:
space:
mode:
authorPaolo Carlini <pcarlini@suse.de>2003-10-21 11:42:29 +0000
committerPaolo Carlini <paolo@gcc.gnu.org>2003-10-21 11:42:29 +0000
commitd23ad8c84e99db31a61b3c51ce61459cf9134482 (patch)
tree8a55293be37e5fa8e35ae9f5f3d3fe74a0ded44b /libstdc++-v3
parente2befd7d4bbecf0faf062e6692b589a1e0ed0de1 (diff)
downloadgcc-d23ad8c84e99db31a61b3c51ce61459cf9134482.zip
gcc-d23ad8c84e99db31a61b3c51ce61459cf9134482.tar.gz
gcc-d23ad8c84e99db31a61b3c51ce61459cf9134482.tar.bz2
locale.cc: Tweak a comment.
2003-10-21 Paolo Carlini <pcarlini@suse.de> * src/locale.cc: Tweak a comment. * src/localename.cc: Move a comment. From-SVN: r72745
Diffstat (limited to 'libstdc++-v3')
-rw-r--r--libstdc++-v3/ChangeLog5
-rw-r--r--libstdc++-v3/src/locale.cc3
-rw-r--r--libstdc++-v3/src/localename.cc2
3 files changed, 7 insertions, 3 deletions
diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog
index 1493a4d..286ff68 100644
--- a/libstdc++-v3/ChangeLog
+++ b/libstdc++-v3/ChangeLog
@@ -1,3 +1,8 @@
+2003-10-21 Paolo Carlini <pcarlini@suse.de>
+
+ * src/locale.cc: Tweak a comment.
+ * src/localename.cc: Move a comment.
+
2003-10-20 Benjamin Kosnik <bkoz@redhat.com>
PR libstdc++/10081
diff --git a/libstdc++-v3/src/locale.cc b/libstdc++-v3/src/locale.cc
index 78d0059..c3e5786 100644
--- a/libstdc++-v3/src/locale.cc
+++ b/libstdc++-v3/src/locale.cc
@@ -28,7 +28,7 @@
#include <clocale>
#include <cstring>
-#include <cstdlib> // For getenv, free.
+#include <cstdlib> // For getenv
#include <cctype>
#include <cwctype> // For towupper, etc.
#include <locale>
@@ -55,7 +55,6 @@ namespace std
__gthread_once_t locale::_S_once = __GTHREAD_ONCE_INIT;
#endif
-
locale::locale(const locale& __other) throw()
{ (_M_impl = __other._M_impl)->_M_add_reference(); }
diff --git a/libstdc++-v3/src/localename.cc b/libstdc++-v3/src/localename.cc
index e14053c..2c12ba7 100644
--- a/libstdc++-v3/src/localename.cc
+++ b/libstdc++-v3/src/localename.cc
@@ -59,8 +59,8 @@ namespace std
}
else
{
- string __res;
// LANG may set a default different from "C".
+ string __res;
char* __env = std::getenv("LANG");
if (!__env || std::strcmp(__env, "") == 0
|| std::strcmp(__env, "C") == 0