From: Thomas Porschberg <thomas.porschberg@osp-dd.de>
To: gcc-help@gcc.gnu.org
Subject: named locale at HPUX
Date: Thu, 28 Jul 2005 07:21:00 -0000 [thread overview]
Message-ID: <20050728072107.GB26268@porschberg.osp-dd.de> (raw)
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
--
reply other threads:[~2005-07-28 7:21 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20050728072107.GB26268@porschberg.osp-dd.de \
--to=thomas.porschberg@osp-dd.de \
--cc=gcc-help@gcc.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).