Commit 48b3222d by Jonathan Wakely

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
parent b2e863b8
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> 2003-07-28 Benjamin Kosnik <bkoz@redhat.com>
* testsuite/testsuite_hooks.h: Remove list include. * testsuite/testsuite_hooks.h: Remove list include.
......
...@@ -187,9 +187,8 @@ ...@@ -187,9 +187,8 @@
int main () int main ()
{ {
std::string s("Some Kind Of Initial Input Goes Here"); std::string s("Some Kind Of Initial Input Goes Here");
std::locale loc_c("C"); ToUpper up(std::locale::classic());
ToUpper up(loc_c); ToLower down(std::locale::classic());
ToLower down(loc_c);
// Change everything into upper case. // Change everything into upper case.
std::transform(s.begin(), s.end(), s.begin(), up); std::transform(s.begin(), s.end(), s.begin(), up);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment