Return-Path: Delivered-To: apmail-incubator-stdcxx-dev-archive@www.apache.org Received: (qmail 33121 invoked from network); 20 Aug 2007 11:21:50 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 20 Aug 2007 11:21:50 -0000 Received: (qmail 44892 invoked by uid 500); 20 Aug 2007 11:21:47 -0000 Delivered-To: apmail-incubator-stdcxx-dev-archive@incubator.apache.org Received: (qmail 44882 invoked by uid 500); 20 Aug 2007 11:21:47 -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 44871 invoked by uid 99); 20 Aug 2007 11:21:47 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 20 Aug 2007 04:21:47 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [208.30.140.160] (HELO moroha.quovadx.com) (208.30.140.160) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 20 Aug 2007 11:21:44 +0000 Received: from qxvcexch01.ad.quovadx.com ([192.168.170.59]) by moroha.quovadx.com (8.13.6/8.13.6) with ESMTP id l7KBLMe9010888 for ; Mon, 20 Aug 2007 11:21:22 GMT X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-7" Content-Transfer-Encoding: quoted-printable Subject: RE: expectation vs requirements for locale facets Date: Mon, 20 Aug 2007 05:20:32 -0600 Message-ID: In-Reply-To: <079E4536A8E.0000021Ambrown@inbox.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: expectation vs requirements for locale facets Thread-Index: AcfipeWswCEW6Y0rSEyDDPv3PrSUswAb8tXg References: <079E4536A8E.0000021Ambrown@inbox.com> From: "Travis Vitek" To: X-Virus-Checked: Checked by ClamAV on apache.org =20 >Mark Brown wrote: > >In my experience, the time_get facet isn't always able to=20 >reliably parse international times and cannot parse every time=20 >string produced by the time_put facet. Yes, I see two different problems here. You can generate output with = time_put<>::put for which there is no matching time_get<> method for = parsing that data. What I mean is that you can easily format "%S %p" = onto the stream, but there is no method in the time_get<> facet for = reading that formatted data back. The stdcxx implemention provides an = extension that allows you to do this, but it's an extension. The other problem is the one that I'm more concerned about. >I don't remember ever=20 >having problems with spaces though. Yeah, that is the problem. It is my interpretation that this is a = requirement, but I'm not sure that anyone agrees with me on this. I = don't really see the point in defining a system for input/output of = times and dates if you can't read in the values that you write out. >On Linux at least, stdcxx=20 >has no problems skipping leading space in time strings. That is inconsistent with what I'm seeing. [see partial failure lists = below] >Which=20 >locale and what operating system does it not do so for you? > Well, so far I've only tried linux/gcc and win32/vc8 both with their = native Standard C++ Library implementations and with the stdcxx = implementations. I get failures in each of them with various locales. I = attached my testcase to another post in this thread = [http://tinyurl.com/2qp7py]. Here is a spew including a few failing = locales for each configuration... win32/vc8/stdcxx string=3D 7.06.1908 locale=3DCroatian string=3D 7.06.1908 locale=3DCzech string=3D 7/06/1908 locale=3DDutch_Belgium string=3D 7.06.1908 locale=3DEstonian string=3D 7.06.1908 locale=3DFinnish string=3D 7/06/1908 locale=3DGreek string=3D 7.06.1908 locale=3DIcelandic string=3D 7. 06. 1908 locale=3DSlovak string=3D 7.06.1908 locale=3DSlovenian string=3D06/ 7/1908 locale=3DSwahili string=3D 7-06-1908 locale=3DDutch_Netherlands string=3D 7/06/1908 locale=3DEnglish_Australia string=3D06/ 7/1908 locale=3DEnglish_Zimbabwe string=3D 7/06/1908 locale=3DFrench_Belgium string=3D 7/06/1908 locale=3DPortuguese_Brazil string=3D 7.06.1908 locale=3DSwedish_Finland string=3D03:02:01 locale=3DAfrikaans win32/vc8/dinkum string=3D1908/06/07 locale=3DAfrikaans string=3D1908-06-07 locale=3DAlbanian string=3D07.06.1908 locale=3DBelarusian string=3D07.6.1908 =F0. locale=3DBulgarian string=3D7.6.1908 locale=3DCroatian string=3D7.6.1908 locale=3DCzech string=3D07-06-1908 locale=3DDanish string=3D7.06.1908 locale=3DEstonian string=3D7.6.1908 locale=3DFinnish string=3D1908. 06. 07. locale=3DHungarian string=3D7.6.1908 locale=3DIcelandic string=3D1908.06.07. locale=3DLatvian string=3D1908.06.07 locale=3DLithuanian string=3D07.06.1908 locale=3DNorwegian string=3D1908-06-07 locale=3DPolish string=3D07.06.1908 locale=3DRomanian string=3D07.06.1908 locale=3DRussian string=3D7. 6. 1908 locale=3DSlovak string=3D7.6.1908 locale=3DSlovenian string=3D1908-06-07 locale=3DSwedish string=3D07.06.1908 locale=3DTatar string=3D07.06.1908 locale=3DTurkish string=3D07.06.1908 locale=3DUkrainian string=3D7-6-1908 locale=3DDutch_Netherlands string=3D1908-06-07 locale=3DFrench_Canada string=3D07.06.1908 locale=3DFrench_Switzerland string=3D07.06.1908 locale=3DGerman_Austria string=3D07.06.1908 locale=3DGerman_Germany string=3D07.06.1908 locale=3DGerman_Liechtenstein string=3D07.06.1908 locale=3DGerman_Luxembourg string=3D07.06.1908 locale=3DGerman_Switzerland string=3D07.06.1908 locale=3DItalian_Switzerland string=3D07-06-1908 locale=3DPortuguese_Portugal string=3D07-06-1908 locale=3DSpanish_Chile string=3D7.6.1908 locale=3DSwedish_Finland string=3D3.02.01 locale=3DItalian_Italy linux/gcc3463/stdcxx string=3D07/06/08 locale=3Dthai string=3D 7.06.1908 locale=3Dbg_BG string=3D07/06/08 locale=3Dlo_LA string=3D07/06/08 locale=3Dth_TH string=3D 3:02:01 locale=3Daa_DJ string=3D 3:02:01 locale=3Daa_ER string=3D 3:02:01 locale=3Daa_ET string=3D 3:02:01 locale=3Dam_ET string=3D 3,02,01 locale=3Dbg_BG string=3D 3:02:01 locale=3Dom_ET string=3D 3:02:01 locale=3Dom_KE string=3D 3:02:01 locale=3Dso_DJ string=3D 3:02:01 locale=3Dso_ET string=3D 3:02:01 locale=3Dso_KE string=3D 3:02:01 locale=3Dso_SO string=3D 3:02:01 locale=3Dti_ER string=3D 3:02:01 locale=3Dti_ET linux/gcc3463/gnustdlib string=3D 3:02:01 locale=3Daa_DJ string=3D 3:02:01 locale=3Daa_ER string=3D 3:02:01 locale=3Daa_ET string=3D 3:02:01 locale=3Dam_ET string=3D 3,02,01 locale=3Dbg_BG string=3D 3:02:01 locale=3Dom_ET string=3D 3:02:01 locale=3Dom_KE string=3D 3:02:01 locale=3Dso_DJ string=3D 3:02:01 locale=3Dso_ET string=3D 3:02:01 locale=3Dso_KE string=3D 3:02:01 locale=3Dso_SO string=3D 3:02:01 locale=3Dti_ER string=3D 3:02:01 locale=3Dti_ET string=3D03:02:01 AM locale=3Dtl_PH >-- Mark >