This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: documentation.html patch


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 &lt;iostream&gt;
! #include &lt;locale&gt;
  using namespace std;
  
  void test01()
  {
!   typedef messages&lt;char&gt;::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&lt;char&gt;& mssg_de = use_facet&lt;messages&lt;char&gt; &gt;(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 &lt;&lt; "please in german:" &lt;&lt; s01 &lt;&lt; '\n';
!   cout &lt;&lt; "thank you in german:" &lt;&lt; s02 &lt;&lt; '\n';
    mssg_de.close(cat_de);
  }
  </pre>


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]