Return-Path: Delivered-To: apmail-incubator-stdcxx-dev-archive@www.apache.org Received: (qmail 81144 invoked from network); 13 Aug 2007 23:06:42 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 13 Aug 2007 23:06:42 -0000 Received: (qmail 89566 invoked by uid 500); 13 Aug 2007 23:06:40 -0000 Delivered-To: apmail-incubator-stdcxx-dev-archive@incubator.apache.org Received: (qmail 89556 invoked by uid 500); 13 Aug 2007 23:06:40 -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 89545 invoked by uid 99); 13 Aug 2007 23:06:40 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 13 Aug 2007 16:06:40 -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, 13 Aug 2007 23:06:38 +0000 Received: from qxvcexch01.ad.quovadx.com ([192.168.170.59]) by moroha.quovadx.com (8.13.6/8.13.6) with ESMTP id l7DN6HwB012947 for ; Mon, 13 Aug 2007 23:06:17 GMT Received: from [10.70.3.113] ([10.70.3.113]) by qxvcexch01.ad.quovadx.com with Microsoft SMTPSVC(6.0.3790.1830); Mon, 13 Aug 2007 17:05:37 -0600 Message-ID: <46C0E3E9.8090304@roguewave.com> Date: Mon, 13 Aug 2007 17:06:17 -0600 From: Martin Sebor Organization: Rogue Wave Software, Inc. User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.6) Gecko/20070802 SeaMonkey/1.1.4 MIME-Version: 1.0 To: stdcxx-dev@incubator.apache.org Subject: Re: [PATCH] Update test 22.locale.time.put.mt.cpp to validate results [take 2] References: <46BF913F.8000403@roguewave.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 13 Aug 2007 23:05:37.0085 (UTC) FILETIME=[75C86ED0:01C7DDFE] X-Virus-Checked: Checked by ClamAV on apache.org Travis Vitek wrote: > > > Travis Vitek wrote: >> Martin Sebor wrote: >>> What do you think about this: let's change rw_locales() to always >>> return a list of names that starts with "C". That way callers that >>> don't want to exercise the "C" locale can simply skip past it while >>> others will be guaranteed to exercise the classic locale. >>> >> Sounds good. If we all agee, then I'll make up a patch for rw_locales() >> and for each of the tests that I added last week. >> >> I'm thinking that rw_locales should take a bool that indicates the "C" >> locale should be included at the head of the list. Ideally the default >> value would be true, but for compatibility it should be set to false. >> Hmmm. I'm thinking false and the tests that want the new >> behavior can be >> updated later. >> >> I will also need to add support for a command line option to enable or >> disable this behavior. I'm thinking --use-c-locale=# or --no-c-locale# >> depending on what we decide for the default value mentioned above. Does >> that sound okay? > > Ugh. What if the user provides both options --locales=en_US,es_MX and > --use-c-locale? Should we attempt to add the "C" locale to the user > supplied locale list, or should this only be something that is in effect > when the user doesn't use --locales? I wouldn't. If the user says --locales=en_US,es_MX then I'd trust them to mean en_US and es_MX and not en_US, es_MX, and "C" :) > > The second option is weird, but it makes the most sense. The user could > easily just write --locales=en_US,es_MX,C if that is what they wanted. Exactly! Martin