Return-Path: Delivered-To: apmail-incubator-stdcxx-dev-archive@www.apache.org Received: (qmail 91532 invoked from network); 22 May 2007 05:16:39 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 22 May 2007 05:16:39 -0000 Received: (qmail 90502 invoked by uid 500); 22 May 2007 05:16:45 -0000 Delivered-To: apmail-incubator-stdcxx-dev-archive@incubator.apache.org Received: (qmail 90490 invoked by uid 500); 22 May 2007 05:16:45 -0000 Mailing-List: contact stdcxx-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: stdcxx-dev@incubator.apache.org Delivered-To: mailing list stdcxx-dev@incubator.apache.org Received: (qmail 90477 invoked by uid 99); 22 May 2007 05:16:44 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 21 May 2007 22:16:44 -0700 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 21 May 2007 22:16:38 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id EE69D71403E for ; Mon, 21 May 2007 22:16:17 -0700 (PDT) Message-ID: <22410035.1179810977969.JavaMail.jira@brutus> Date: Mon, 21 May 2007 22:16:17 -0700 (PDT) From: "Martin Sebor (JIRA)" To: stdcxx-dev@incubator.apache.org Subject: [jira] Assigned: (STDCXX-217) [Windows] SIGABRT in std::locale("...") on a combined locale name In-Reply-To: <6325684.1151517809857.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/STDCXX-217?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Martin Sebor reassigned STDCXX-217: ----------------------------------- Assignee: Farid Zaripov Farid, could you please check to see if this is still an issue? > [Windows] SIGABRT in std::locale("...") on a combined locale name > ----------------------------------------------------------------- > > Key: STDCXX-217 > URL: https://issues.apache.org/jira/browse/STDCXX-217 > Project: C++ Standard Library > Issue Type: Bug > Components: 22. Localization > Affects Versions: 4.1.3, 4.1.2 > Environment: Windows > Reporter: Martin Sebor > Assigned To: Farid Zaripov > > Moved from the Rogue Wave bug tracking database: > ****Created By: sebor @ Mar 16, 2004 04:58:48 PM**** > The program below aborts on Win32: > #include > #include > #include > int main () > { > const char shortname[] = > "ENG;NON;MSB;FRM;ENP"; > const char longname[] = { > "LC_COLLATE=ENG;" > "LC_CTYPE=NON;" > "LC_MONETARY=MSB;" > "LC_NUMERIC=FRM;" > "LC_TIME=ENP" > }; > const char* fullname = std::setlocale (LC_ALL, shortname); > std::printf ("%s\n", fullname ? fullname : "(null)"); > const std::locale classic = std::locale::classic (); > { > const std::locale loc (shortname); > std::printf ("%s\n", loc.name ()); > std::printf ("%s\n", classic.name ().c_str ()); > } > fullname = std::setlocale (LC_ALL, longname); > std::printf ("%s\n", fullname ? fullname : "(null)"); > { > const std::locale loc (longname); > std::printf ("%s\n", loc.name ()); > std::printf ("%s\n", classic.name ().c_str ()); > } > > return 0; > } > $ cl -D_RWCONFIG=11s -Ic:\contrib\cygwin\build\sebor\dev-hal\include -I.\..\..\..\..\include -Ic:\contrib\cygwin\build\sebor\dev-hal\tests\stdlib\locale\..\include -Ic:\contrib\cygwin\build\sebor\dev-hal\include\ansi -I.\..\..\..\.. -Ic:\contrib\cygwin\build\sebor\dev-hal -Ic:\contrib\cygwin\build\sebor\dev-hal\tests\stdlib\locale -I. -nologo -GX -MLd -W3 -Zi -GA -GR -GF -GZ -c t.cpp > t.cpp > link -nologo /NODEFAULTLIB:libcpd /debug /LIBPATH:.\..\..\..\..\lib /OUT:t.exe t.obj testx11s.lib tlt11s.lib std11s.lib user32.lib > $ t.exe > English_United States.1252 > LC_COLLATE=ENG;LC_CTYPE=Norw;LC_MONETARY=Malay_Bru;LC_NUMERIC=French_Principality;LC_TIME=English_Republic of the Philippines.125;LC_COLLATE=English_United States.1252 > C > LC_COLLATE=English_United Kingdom.1252;LC_CTYPE=Norwegian-Nynorsk_Norway.1252;LC_MONETARY=Malay_Brunei Darussalam.1252;LC_NUMERIC=French_Principality of Monaco.1252;LC_TIME=English_Republic of the Philippines.1252 > c:\contrib\cygwin\build\sebor\dev-hal\source\stdlib\locale_body.cpp:669: int __cdecl __rw::cmplocale(const void *,const void *): Assertion '0 != plocale->_C_get_name ()' failed. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.