Return-Path: Delivered-To: apmail-incubator-stdcxx-dev-archive@www.apache.org Received: (qmail 33356 invoked from network); 29 Nov 2007 17:35:35 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 29 Nov 2007 17:35:35 -0000 Received: (qmail 78132 invoked by uid 500); 29 Nov 2007 17:35:22 -0000 Delivered-To: apmail-incubator-stdcxx-dev-archive@incubator.apache.org Received: (qmail 78118 invoked by uid 500); 29 Nov 2007 17:35:22 -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 78107 invoked by uid 99); 29 Nov 2007 17:35:22 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 29 Nov 2007 09:35:22 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [208.30.140.160] (HELO moroha.roguewave.com) (208.30.140.160) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 29 Nov 2007 17:35:25 +0000 Received: from exchmail01.Blue.Roguewave.Com (exchmail01.blue.roguewave.com [10.22.129.22]) by moroha.roguewave.com (8.13.6/8.13.6) with ESMTP id lATHZ28N018711 for ; Thu, 29 Nov 2007 17:35:02 GMT X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Subject: RE: [jira] Updated: (STDCXX-459) time_get::date_order() should return actually date order taken from locale Date: Thu, 29 Nov 2007 10:35:26 -0700 Message-ID: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: [jira] Updated: (STDCXX-459) time_get::date_order() should return actually date order taken from locale Thread-Index: AcgyoNMcOZ9CJPmdTu6mkEQJ0w2XYwACzBcg References: <12571244.1196351803395.JavaMail.jira@brutus> From: "Travis Vitek" To: X-Virus-Checked: Checked by ClamAV on apache.org =20 The standard says the following about do_date_order() dateorder do_date_order() const; 1 Returns: An enumeration value indicating the preferred order of components for those date formats that are composed of day, month, and year. 244) Returns no_order if the date format specified by 'x' contains other variable components (e.g. Julian day, week number, week day). 224) This function is intended as a convenience only, for common formats, and may return no_order in valid locales. I think that __rw_get_dateorder() needs to handle unexpected date format specifiers [such as %j, %U, %V, %w] by returning no_order. I also think you might also want to handle %h in there as it is an alias for %b. Might there be a compatibility issue here also? Travis >From: Farid Zaripov (JIRA) [mailto:jira@apache.org]=20 > > >Farid Zaripov updated STDCXX-459: >--------------------------------- > > Attachment: stdcxx-459.patch > >The proposed patch attached. > > time_get::date_order() should return actually date order=20 > taken from locale >=20 >--------------------------------------------------------------- >> >> Key: STDCXX-459 >> URL: https://issues.apache.org/jira/browse/STDCXX-459 >> Project: C++ Standard Library >> Issue Type: Improvement >> Components: 22. Localization >> Affects Versions: 4.1.2, 4.1.3, 4.1.4 >> Environment: All >> Reporter: Farid Zaripov >> Assignee: Farid Zaripov >> Priority: Minor >> Fix For: 4.2.1 >> >> Attachments: stdcxx-459.patch >> >>