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.
