* src/locale.cc: Tweak a comment.
* src/localename.cc: Move a comment.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@72745
138bc75d-0d04-0410-961f-
82ee72b054a4
+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
#include <clocale>
#include <cstring>
-#include <cstdlib> // For getenv, free.
+#include <cstdlib> // For getenv
#include <cctype>
#include <cwctype> // For towupper, etc.
#include <locale>
__gthread_once_t locale::_S_once = __GTHREAD_ONCE_INIT;
#endif
-
locale::locale(const locale& __other) throw()
{ (_M_impl = __other._M_impl)->_M_add_reference(); }
}
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