From issues-return-2647-apmail-stdcxx-issues-archive=stdcxx.apache.org@stdcxx.apache.org Sun Oct 10 22:18:00 2010 Return-Path: Delivered-To: apmail-stdcxx-issues-archive@minotaur.apache.org Received: (qmail 47889 invoked from network); 10 Oct 2010 22:17:59 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 10 Oct 2010 22:17:59 -0000 Received: (qmail 13548 invoked by uid 500); 10 Oct 2010 22:17:59 -0000 Delivered-To: apmail-stdcxx-issues-archive@stdcxx.apache.org Received: (qmail 13531 invoked by uid 500); 10 Oct 2010 22:17:59 -0000 Mailing-List: contact issues-help@stdcxx.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@stdcxx.apache.org Delivered-To: mailing list issues@stdcxx.apache.org Received: (qmail 13523 invoked by uid 99); 10 Oct 2010 22:17:59 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 10 Oct 2010 22:17:59 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 10 Oct 2010 22:17:57 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o9AMHZAB013417 for ; Sun, 10 Oct 2010 22:17:35 GMT Message-ID: <4491072.68571286749055495.JavaMail.jira@thor> Date: Sun, 10 Oct 2010 18:17:35 -0400 (EDT) From: "Razan Abbass (JIRA)" To: issues@stdcxx.apache.org Subject: [jira] Commented: (STDCXX-342) [Solaris] std::locale("/path/to/valid/locale") throws MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/STDCXX-342?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12919675#action_12919675 ] Razan Abbass commented on STDCXX-342: ------------------------------------- [airline tickets|http://getflightsto.com] [Parenting|http://childcareforums.com] > [Solaris] std::locale("/path/to/valid/locale") throws > ----------------------------------------------------- > > Key: STDCXX-342 > URL: https://issues.apache.org/jira/browse/STDCXX-342 > Project: C++ Standard Library > Issue Type: Bug > Components: 22. Localization > Affects Versions: 4.1.2, 4.1.3, 4.1.4, 4.2.0, 4.2.1 > Environment: Solaris > Reporter: Martin Sebor > Fix For: 4.2.2 > > Original Estimate: 4h > Remaining Estimate: 4h > > The locale ctors that take a locale name can't deal with absolute pathnames on Solaris (see the test case below). That's because the Solaris locale category separator is the same as a path separator (i.e., the forward slash character) and the ctors do not distinguish one from the other. > $ cat t.cpp && make t && LC_ALL=../nls/en_US.ISO-8859-1 ../bin/locale && ./t `cd ../nls && pwd`/en_US.ISO-8859-1 > #include > int main (int, char *argv[]) > { > (void)std::locale (argv [1]); > } > gcc -c -I/build/sebor/dev/stdlib/include/ansi -D_RWSTDDEBUG -D_RWSTD_USE_CONFIG -I/build/sebor/dev/stdlib/include -I/build/sebor/gcc-4.1.0-11s/include -I/build/sebor/dev/stdlib/examples/include -pedantic -nostdinc++ -g -W -Wall -Wcast-qual -Winline -Wshadow -Wwrite-strings -Wno-long-long t.cpp > gcc t.o -o t -L/build/sebor/gcc-4.1.0-11s/lib -lstd11s -lsupc++ -lm > LANG=C > LC_CTYPE="../nls/en_US.ISO-8859-1" > LC_COLLATE="../nls/en_US.ISO-8859-1" > LC_TIME="../nls/en_US.ISO-8859-1" > LC_MONETARY="../nls/en_US.ISO-8859-1" > LC_NUMERIC="../nls/en_US.ISO-8859-1" > LC_MESSAGES="../nls/en_US.ISO-8859-1" > LC_ALL=../nls/en_US.ISO-8859-1 > terminate called after throwing an instance of 'std::runtime_error' > what(): /build/sebor/dev/stdlib/src/locale_combine.cpp:639: std::locale::locale(const char*): bad locale name: "/build/sebor/gcc-4.1.0-11s/nls/en_US.ISO-8859-1" > Abort (core dumped) -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.