diff options
author | Benjamin Kosnik <bkoz@gcc.gnu.org> | 2003-07-08 20:25:39 +0000 |
---|---|---|
committer | Benjamin Kosnik <bkoz@gcc.gnu.org> | 2003-07-08 20:25:39 +0000 |
commit | c094e9b948934171a90b20a0551558f5b92ddadf (patch) | |
tree | 4b9bb1c9f3c33a77bbb57d437be5c6bfcde01953 /libstdc++-v3/src | |
parent | 516574425b935981dcdae07ff0e3be6b5946bf04 (diff) | |
download | gcc-c094e9b948934171a90b20a0551558f5b92ddadf.zip gcc-c094e9b948934171a90b20a0551558f5b92ddadf.tar.gz gcc-c094e9b948934171a90b20a0551558f5b92ddadf.tar.bz2 |
numeric_members.cc: Correct type info.
2003-07-08 Benjamin Kosnik <bkoz@redhat.com>
* config/locale/generic/numeric_members.cc: Correct type info.
* config/locale/gnu/numeric_members.cc: Same.
* include/bits/locale_facets.h: Same.
* include/bits/char_traits.h: Correct spacing.
* src/locale.cc: Wrap to 80 col.
From-SVN: r69098
Diffstat (limited to 'libstdc++-v3/src')
-rw-r--r-- | libstdc++-v3/src/locale.cc | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/libstdc++-v3/src/locale.cc b/libstdc++-v3/src/locale.cc index c6be069..248fdf3 100644 --- a/libstdc++-v3/src/locale.cc +++ b/libstdc++-v3/src/locale.cc @@ -187,7 +187,8 @@ namespace std // If LC_ALL is set we are done. if (__env && std::strcmp(__env, "") != 0) { - if (std::strcmp(__env, "C") == 0 || std::strcmp(__env, "POSIX") == 0) + if (std::strcmp(__env, "C") == 0 + || std::strcmp(__env, "POSIX") == 0) (_M_impl = _S_classic)->_M_add_reference(); else _M_impl = new _Impl(__env, 1); @@ -197,7 +198,8 @@ namespace std char* __res; // LANG may set a default different from "C". char* __env = getenv("LANG"); - if (!__env || std::strcmp(__env, "") == 0 || std::strcmp(__env, "C") == 0 + if (!__env || std::strcmp(__env, "") == 0 + || std::strcmp(__env, "C") == 0 || std::strcmp(__env, "POSIX") == 0) __res = strdup("C"); else @@ -481,7 +483,7 @@ namespace std } #endif - // Definitions for static const data members of time_base + // Definitions for static const data members of time_base. template<> const char* __timepunct<char>::_S_timezones[14] = @@ -500,7 +502,7 @@ namespace std }; #endif - // Definitions for static const data members of money_base + // Definitions for static const data members of money_base. const money_base::pattern money_base::_S_default_pattern = { {symbol, sign, none, value} }; |