|
From: | Pádraig Brady |
Subject: | Re: Adding tests for non-C locales |
Date: | Tue, 11 Dec 2012 16:57:09 +0000 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:13.0) Gecko/20120615 Thunderbird/13.0.1 |
On 12/11/2012 04:21 PM, Assaf Gordon wrote:
Hello, I want to add tests for non-C locales (to check grouping in numfmt). My test script is written in Perl, based on "tests/misc/wc.pl" . It starts with: === @ENV{qw(LANGUAGE LANG LC_ALL)} = ('C') x 3; === Which is fine for most of the tests. How do I add tests for non-C locale, in a safe manner (I need a locale that I know which thousand-group separator character is used, but I can't know in advanced if it's installed on the testing machine).
There is special handling of the fr_FR locale to check that it's available etc. To see uses of this in both sh and pl scripts: git grep LOCALE_FR_UTF8 cheers, Pádraig.
[Prev in Thread] | Current Thread | [Next in Thread] |