mirror of
https://gcc.gnu.org/git/gcc.git
synced 2024-11-30 07:14:09 +08:00
howto.html: Use locale::classic() instead of locale("C").
2003-07-30 Jonathan Wakely <redi@gcc.gnu.org> * docs/html/22_locale/howto.html: Use locale::classic() instead of locale("C"). From-SVN: r69956
This commit is contained in:
parent
b2e863b872
commit
48b3222dcc
@ -1,3 +1,8 @@
|
||||
2003-07-30 Jonathan Wakely <redi@gcc.gnu.org>
|
||||
|
||||
* docs/html/22_locale/howto.html: Use locale::classic() instead
|
||||
of locale("C").
|
||||
|
||||
2003-07-28 Benjamin Kosnik <bkoz@redhat.com>
|
||||
|
||||
* testsuite/testsuite_hooks.h: Remove list include.
|
||||
|
@ -187,9 +187,8 @@
|
||||
int main ()
|
||||
{
|
||||
std::string s("Some Kind Of Initial Input Goes Here");
|
||||
std::locale loc_c("C");
|
||||
ToUpper up(loc_c);
|
||||
ToLower down(loc_c);
|
||||
ToUpper up(std::locale::classic());
|
||||
ToLower down(std::locale::classic());
|
||||
|
||||
// Change everything into upper case.
|
||||
std::transform(s.begin(), s.end(), s.begin(), up);
|
||||
|
Loading…
Reference in New Issue
Block a user