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:
Jonathan Wakely 2003-07-30 15:43:35 +01:00
parent b2e863b872
commit 48b3222dcc
2 changed files with 7 additions and 3 deletions

View File

@ -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.

View File

@ -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);