public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* named locale at HPUX
@ 2005-07-28  7:21 Thomas Porschberg
  0 siblings, 0 replies; only message in thread
From: Thomas Porschberg @ 2005-07-28  7:21 UTC (permalink / raw)
  To: gcc-help

Hi,

the following program:

>snip

   #include <iterator>    // for back_inserter
   #include <locale>
   #include <string>
   #include <algorithm>
   #include <iostream>
   #include <cctype>      // old <ctype.h>

   struct ToUpper
   {
       ToUpper(std::locale const& l) : loc(l) {;}
       char operator() (char c) const  { return std::toupper(c,loc); }
   private:
       std::locale const& loc;
   };

   int main ()
   {
      std::locale loc("de_DE");
      std::string  s("Some Kind Of Initial Input Goes Here with a German 'ä'");
      ToUpper      up(loc);

      // Change everything into upper case.
      std::transform(s.begin(), s.end(), s.begin(), up);
      std::cout << "s:" << s << std::endl;
   }

>snip

runs fine on linux but not at HPUX(gcc version 3.2.3,
B.11.11 U 9000/800).
At HPUX the German 'ä' is not changed to an upper 'Ä'.
I tried with other locale names too, like "de", "de_DE.iso88591".
How can I determine which locales are available and named under HPUX ? 

Thomas
-- 

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2005-07-28  7:21 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-07-28  7:21 named locale at HPUX Thomas Porschberg

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).