mirror of
https://gcc.gnu.org/git/gcc.git
synced 2024-11-30 07:14:09 +08:00
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
This commit is contained in:
parent
e2befd7d4b
commit
d23ad8c84e
@ -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
|
||||
|
@ -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(); }
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user