Return-Path: X-Original-To: apmail-stdcxx-dev-archive@www.apache.org Delivered-To: apmail-stdcxx-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 847E7D3CB for ; Mon, 1 Oct 2012 15:07:08 +0000 (UTC) Received: (qmail 31350 invoked by uid 500); 1 Oct 2012 15:07:08 -0000 Delivered-To: apmail-stdcxx-dev-archive@stdcxx.apache.org Received: (qmail 31303 invoked by uid 500); 1 Oct 2012 15:07:08 -0000 Mailing-List: contact dev-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 dev@stdcxx.apache.org Received: (qmail 31295 invoked by uid 99); 1 Oct 2012 15:07:08 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 01 Oct 2012 15:07:08 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of msebor@gmail.com designates 209.85.220.54 as permitted sender) Received: from [209.85.220.54] (HELO mail-pa0-f54.google.com) (209.85.220.54) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 01 Oct 2012 15:06:59 +0000 Received: by padbi1 with SMTP id bi1so4182027pad.41 for ; Mon, 01 Oct 2012 08:06:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=vksPdb+ohiAhdjbZVqHP/5m5DPOWeks+iSfnPM4z5Kw=; b=AbcTthdETEMREP2wxdtGVZCL/7dzsibNG7HR6yPBsxYi+X16AB/iOnE5GjSyW21cYY b89StgfIujJaW98Uw9leY7RaREbbqrBNLuS+MWFzvDNY/I62m8OxxHCYoJVj4Re78uC4 AcMi2xBjTTlSREb2btoF8HpHLOElRkEZU3xGRXbHfYlgYuLvCRjq7pxtQQP1HNpZB2bQ g7Oht+sjGNhUTKqGXXwo4VH+beoph1gSPu67+ypmwUnYTdn2xx5Ax2Hr/sl9A+arUdge ZR8nH/A4zZOz17zGm9L0E7a6u8OpeQPDSuWFvV8eb6piAS/9/t+4i7pZ41odNzZsVzPE 58Rg== Received: by 10.66.84.6 with SMTP id u6mr37101758pay.75.1349103997862; Mon, 01 Oct 2012 08:06:37 -0700 (PDT) Received: from localhost.localdomain (72-163-0-129.cisco.com. [72.163.0.129]) by mx.google.com with ESMTPS id ox5sm10397681pbc.75.2012.10.01.08.06.36 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 01 Oct 2012 08:06:37 -0700 (PDT) Message-ID: <5069B17B.5040003@gmail.com> Date: Mon, 01 Oct 2012 09:06:35 -0600 From: Martin Sebor User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:11.0) Gecko/20120329 Thunderbird/11.0.1 MIME-Version: 1.0 To: dev@stdcxx.apache.org CC: Liviu Nicoara Subject: Re: STDCXX-970 and locale tests References: <50678544.3000403@hates.ms> <50699355.7030201@hates.ms> In-Reply-To: <50699355.7030201@hates.ms> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit On 10/01/2012 06:57 AM, Liviu Nicoara wrote: > On 09/29/12 19:33, Liviu Nicoara wrote: >> [...] all locale tests are supposed to be run without >> RWSTD_LOCALE_ROOT defined? > > I have looked in other tests and they seem to either: > > 1. Create their own "synthetic" locales from hard-coded sources. > 2. Create true locales from STDCXX sources. > > Both are placed at runtime in temporary directories, then the test sets > RWSTD_LOCALE_ROOT, and the localization library picks them from there. > Setting the RWSTD_LOCALE_ROOT directory beforehand (even to a correct > location) is unexpected. I suspect the setting is simply ignored (overwritten by the test). > > Also, I see that the localization tests do not make use of input files, > unlike the older Rogue Wave tests. Is that a policy going forward that > the tests do not make use of external input files? The tests hardcode locale values in order to guarantee consistent results, even if the external locale databases change. There also is a makefile target that builds all the stdcxx locales. That's just to exercise the locale utility programs. I think there also should be a test that uses localedef to build a subset of these locales, runs the locale utility to dump the contents of the built database, and then localedef again to rebuild the database. Then it compares the result of the first and second build (or it may do three stages to normalize things) to make sure they match. Martin > > Thanks, > Liviu