documentation.html patch

Jonathan Wakely cow@compsoc.man.ac.uk
Tue Aug 13 09:43:00 GMT 2002


On Tue, Aug 13, 2002 at 12:28:06PM -0400, Phil Edwards wrote:

> Thanks, good catch.  This is in; I spotted some other goofs while making
> the change.  Looks like the HTML text was copied from the /rendered/
> version of the various howto's.  All fixed AFAIK now.

I was just looking at docs/html/22_locale/messages.html as well, and it needs
the following patch to fix the asme problem.


2002-08-13  Jonathan Wakely  <jw@kayari.org>

	* docs/html/22_locale/messages.html:  Use HTML entities for punctuation.


*** orig/html/22_locale/messages.html	Tue Aug 13 17:30:07 2002
--- docs/html/22_locale/messages.html	Tue Aug 13 17:32:39 2002
***************
*** 251,273 ****
  	<li> message converting, simple example using the GNU model.
  
  <pre>
! #include <iostream>
! #include <locale>
  using namespace std;
  
  void test01()
  {
!   typedef messages<char>::catalog catalog;
    const char* dir =
    "/mnt/egcs/build/i686-pc-linux-gnu/libstdc++-v3/po/share/locale";  
    const locale loc_de("de_DE");
!   const messages<char>& mssg_de = use_facet<messages<char> >(loc_de); 
  
    catalog cat_de = mssg_de.open("libstdc++", loc_de, dir);
    string s01 = mssg_de.get(cat_de, 0, 0, "please");
    string s02 = mssg_de.get(cat_de, 0, 0, "thank you");
!   cout << "please in german:" << s01 << '\n';
!   cout << "thank you in german:" << s02 << '\n';
    mssg_de.close(cat_de);
  }
  </pre>
--- 251,273 ----
  	<li> message converting, simple example using the GNU model.
  
  <pre>
! #include <iostream>
! #include <locale>
  using namespace std;
  
  void test01()
  {
!   typedef messages<char>::catalog catalog;
    const char* dir =
    "/mnt/egcs/build/i686-pc-linux-gnu/libstdc++-v3/po/share/locale";  
    const locale loc_de("de_DE");
!   const messages<char>& mssg_de = use_facet<messages<char> >(loc_de); 
  
    catalog cat_de = mssg_de.open("libstdc++", loc_de, dir);
    string s01 = mssg_de.get(cat_de, 0, 0, "please");
    string s02 = mssg_de.get(cat_de, 0, 0, "thank you");
!   cout << "please in german:" << s01 << '\n';
!   cout << "thank you in german:" << s02 << '\n';
    mssg_de.close(cat_de);
  }
  </pre>



More information about the Libstdc++ mailing list