From -1893791121567262143 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f78e5,40bc29384a77c552,start X-Google-Attributes: gidf78e5,public X-Google-ArrivalTime: 2002-04-02 11:49:09 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.media.kyoto-u.ac.jp!newsfeed.frii.com!newsfeed.icl.net!dispose.news.demon.net!news.demon.co.uk!demon!mail2news.demon.co.uk!not-for-mail From: "Edward Diener" Newsgroups: comp.std.c++ Subject: Messages facet and wide character filename Date: Tue, 2 Apr 2002 19:48:33 GMT Organization: EarthLink Inc. -- http://www.EarthLink.net Approved: Fergus Henderson , moderator of comp.std.c++ Message-ID: X-Trace: mail2news.demon.co.uk 1017776917 mail2news:28787 mail2news mail2news.demon.co.uk X-Complaints-To: abuse@demon.net X-Mail2News-Path: news.demon.net!mulga.cs.mu.oz.au X-Authentication-Warning: mulga.cs.mu.OZ.AU: fjh set sender to devnull@stump.algebra.com using -f X-Robomod: STUMP, ichudov@algebra.com (Igor Chudov) X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.00.2919.6600 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6600 NNTP-Posting-Date: Tue, 02 Apr 2002 10:59:59 PST Lines: 20 Xref: archiver1.google.com comp.std.c++:10364 The message catalog opened in the std::messages<> facet is specified as std::basic_string type. I would have guessed the string type would have been parameterized on the std::messages<> facet character type so that for wide character messages a wide character filename would be opened. This makes sense for locales for areas of the world where wide characters are the language norm. I would expect, let's say, a Japanese user to have their filenames be wide character strings on their OS of choice and not single-byte Ascii strings. But perhaps my expectation is wrong and if it is so I would love to be so informed. Could anybody give me the rationale why the std::messages<> facet was designed to take an Ascii string as the message catalog filename rather than a string parameterized on the std::messages<> character type ? --- [ comp.std.c++ is moderated. To submit articles, try just posting with ] [ your news-reader. If that fails, use mailto:std-c++@ncar.ucar.edu ] [ --- Please see the FAQ before posting. --- ] [ FAQ: http://www.research.att.com/~austern/csc/faq.html ]