On 25 February 2013 01:20, Cedric Blancher
<[email protected]> wrote:
> On 23 February 2013 08:40, Glenn Fowler <[email protected]> wrote:
>>
>> the AT&T Software Technology ast alpha 2013-02-22 source
>> has been posted to the download site
>>         http://www.research.att.com/sw/download/alpha/
>> the package names and md5 checksums are
>>             INIT  3a3a881b9bb16c8d1268517a0702fa43
>>          ast-ksh  1d3f9a8da99d1fa32f5fe124e39e5eeb
>> the md5 sums should match the ones listed on the download page
>> if not then don't download
>>
>> this release contains a few more ksh93v- fixes
>
> The l10n bug is still there and *cripples* our scripts:
>
> ---------- Forwarded message ----------
> From: Cedric Blancher <[email protected]>
> Date: 21 February 2013 18:08
> Subject: Re: [ast-developers] 2013-02-14 alpha
> To: Irek Szczesniak <[email protected]>
> Cc: Glenn Fowler <[email protected]>,
> [email protected], Roland Mainz
> <[email protected]>, Susan Korn <[email protected]>
>
>
> On 21 February 2013 12:21, Irek Szczesniak <[email protected]> wrote:
>> On Mon, Feb 18, 2013 at 5:51 PM, Glenn Fowler <[email protected]> wrote:
>>>
>>> 2013-02-14 alpha posted to www.research.att.com/download/alpha/
>>>         INIT.2013-02-14.tgz
>>>         ast-ksh.2013-02-14.tgz
>>> this is a work in progress
>>> there are known problems on some architectures
>>
>> Has anyone encountered problems with LANG/LC_ALL switching and ksh93
>> $"..." based localization? We've seen weired issues but haven't found
>> a test case yet.
>
> I see that, too. The tests Roland Mainz wrote go berserk for this ksh93 
> version:
> script_l10n_literals.ksh[64]: test_basic1:t1: Expected stderr=='', got
> 'Usage: unset [-nfv] name...'
> script_l10n_literals.ksh[65]: test_basic1:t1: Unexpected exit code 2
> script_l10n_literals.ksh[63]:
> test_basic1:t1_unuseable_external_nlspath: Expected stdout==$'Simple
> demonstration of ksh93 message translation\nMessage locale is:
> fr_FR.UTF-8\nBonjour\nAu Revoir\nBienvenu David\nThis string is not
> translated because it is not in the message catalog\n#####\nSimple
> demonstration of ksh93 message translation\nMessage locale is:
> C\nHello\nGoodbye\nWelcome David\nThis string is not translated
> because it is not in the message catalog', got ''
> script_l10n_literals.ksh[64]:
> test_basic1:t1_unuseable_external_nlspath: Expected stderr=='', got
> 'Usage: unset [-nfv] name...'
> script_l10n_literals.ksh[65]:
> test_basic1:t1_unuseable_external_nlspath: Unexpected exit code 2
> script_l10n_literals.ksh[63]: test_basic1:t1: Expected
> stdout==$'Simple demonstration of ksh93 message translation\nMessage
> locale is: fr_FR.UTF-8\nBonjour\nAu Revoir\nBienvenu David\nThis
> string is not translated because it is not in the message
> catalog\n#####\nSimple demonstration of ksh93 message
> translation\nMessage locale is: C\nHello\nGoodbye\nWelcome David\nThis
> string is not translated because it is not in the message catalog',
> got ''
> script_l10n_literals.ksh[64]: test_basic1:t1: Expected stderr=='', got
> 'Usage: unset [-nfv] name...'
> script_l10n_literals.ksh[65]: test_basic1:t1: Unexpected exit code 2
> script_l10n_literals.ksh[63]:
> test_basic1:t1_unuseable_external_nlspath: Expected stdout==$'Simple
> demonstration of ksh93 message translation\nMessage locale is:
> fr_FR.UTF-8\nBonjour\nAu Revoir\nBienvenu David\nThis string is not
> translated because it is not in the message catalog\n#####\nSimple
> demonstration of ksh93 message translation\nMessage locale is:
> C\nHello\nGoodbye\nWelcome David\nThis string is not translated
> because it is not in the message catalog', got ''
> script_l10n_literals.ksh[64]:
> test_basic1:t1_unuseable_external_nlspath: Expected stderr=='', got
> 'Usage: unset [-nfv] name...'
> script_l10n_literals.ksh[65]:
> test_basic1:t1_unuseable_external_nlspath: Unexpected exit code 2
> script_l10n_literals.ksh[63]:
> test_per_function_catalogs:t1_per_function_catalog: Expected
> stdout==$'This is function f_a\nThis is function f_b', got $'This is
> function XXX\nThis is function XXX'
> script_l10n_literals.ksh[63]:
> test_per_function_catalogs:t1_per_function_catalog_only_for_f_a:
> Expected stdout==$'This is function f_a\nThis is function XXX', got
> $'This is function XXX\nThis is function XXX'
> script_l10n_literals.ksh[63]:
> test_per_function_catalogs:t1_per_function_catalog_only_for_f_b:
> Expected stdout==$'This is function XXX\nThis is function f_b', got
> $'This is function XXX\nThis is function XXX'
> script_l10n_literals.ksh[63]:
> test_per_function_catalogs:t1_single_catalog_per_script: Expected
> stdout==$'This is a function in msg.sh\nThis is a function in msg.sh',
> got $'This is function XXX\nThis is function XXX'
> script_l10n_literals.ksh[63]:
> test_per_function_catalogs:t1_single_catalog_per_script: Expected
> stdout==$'This is function f_a\nThis is a function in msg.sh', got
> $'This is function XXX\nThis is function XXX'
> script_l10n_literals.ksh[63]:
> test_per_function_catalogs:t1_single_catalog_per_script: Expected
> stdout==$'This is a function in msg.sh\nThis is function f_b', got
> $'This is function XXX\nThis is function XXX'
> script_l10n_literals.ksh[63]:
> test_per_function_catalogs:t1_per_function_catalog: Expected
> stdout==$'This is function f_a\nThis is function f_b', got $'This is
> function XXX\nThis is function XXX'
> script_l10n_literals.ksh[63]:
> test_per_function_catalogs:t1_per_function_catalog_only_for_f_a:
> Expected stdout==$'This is function f_a\nThis is function XXX', got
> $'This is function XXX\nThis is function XXX'
> script_l10n_literals.ksh[63]:
> test_per_function_catalogs:t1_per_function_catalog_only_for_f_b:
> Expected stdout==$'This is function XXX\nThis is function f_b', got
> $'This is function XXX\nThis is function XXX'
> script_l10n_literals.ksh[63]:
> test_per_function_catalogs:t1_single_catalog_per_script: Expected
> stdout==$'This is a function in msg.sh\nThis is a function in msg.sh',
> got $'This is function XXX\nThis is function XXX'
> script_l10n_literals.ksh[63]:
> test_per_function_catalogs:t1_single_catalog_per_script: Expected
> stdout==$'This is function f_a\nThis is a function in msg.sh', got
> $'This is function XXX\nThis is function XXX'
> script_l10n_literals.ksh[63]:
> test_per_function_catalogs:t1_single_catalog_per_script: Expected
> stdout==$'This is a function in msg.sh\nThis is function f_b', got
> $'This is function XXX\nThis is function XXX'
> script_l10n_literals.ksh[63]:
> test_per_function_catalogs:t1_per_function_catalog: Expected
> stdout==$'This is function f_a\nThis is function f_b', got $'This is
> function XXX\nThis is function XXX'
> script_l10n_literals.ksh[63]:
> test_per_function_catalogs:t1_per_function_catalog_only_for_f_a:
> Expected stdout==$'This is function f_a\nThis is function XXX', got
> $'This is function XXX\nThis is function XXX'
> script_l10n_literals.ksh[63]:
> test_per_function_catalogs:t1_per_function_catalog_only_for_f_b:
> Expected stdout==$'This is function XXX\nThis is function f_b', got
> $'This is function XXX\nThis is function XXX'
> script_l10n_literals.ksh[63]:
> test_per_function_catalogs:t1_single_catalog_per_script: Expected
> stdout==$'This is a function in msg.sh\nThis is a function in msg.sh',
> got $'This is function XXX\nThis is function XXX'
> script_l10n_literals.ksh[63]:
> test_per_function_catalogs:t1_single_catalog_per_script: Expected
> stdout==$'This is function f_a\nThis is a function in msg.sh', got
> $'This is function XXX\nThis is function XXX'
> script_l10n_literals.ksh[63]:
> test_per_function_catalogs:t1_single_catalog_per_script: Expected
> stdout==$'This is a function in msg.sh\nThis is function f_b', got
> $'This is function XXX\nThis is function XXX
>
> Ced
> --
> Cedric Blancher <[email protected]>
> Institute Pasteur
>
>
>
>>
>> _______________________________________________
>> ast-developers mailing list
>> [email protected]
>> http://lists.research.att.com/mailman/listinfo/ast-developers

ast-ksh.20121121 passes Roland's test module without trouble:
(export SHELL=~/prod/ast/20121121/build686/arch/linux.i386-64/bin/ksh
; $SHELL ./src/cmd/ksh93/tests/shtests -l LC_ALL=C
./src/cmd/ksh93/tests/script_l10n_literals.sh )
test script_l10n_literals begins at 2013-02-25+05:48:47
test script_l10n_literals passed at 2013-02-25+05:48:48 [ 12 tests 0 errors ]
test script_l10n_literals(shcomp) begins at 2013-02-25+05:48:48
test script_l10n_literals(shcomp) passed at 2013-02-25+05:48:48 [ 12
tests 0 errors ]

The following ast-ksh version (ast-ksh.20130214) fails as I reported earlier.

I think the problem is because of the LC_ALL=C, removing it from the
shtests call fixes the failures - but why did ast-ksh.20121121 not
fail for the same test?

Ced
-- 
Cedric Blancher <[email protected]>
Institute Pasteur
_______________________________________________
ast-developers mailing list
[email protected]
http://lists.research.att.com/mailman/listinfo/ast-developers

Reply via email to