On 2/13/13 1:37 PM, "Justin Mclean" <jus...@classsoftware.com> wrote:
> Hi,
>
> Back when we did the 4.9 release I did run the checkin test over several
> locales just about all of them had issues:
> https://cwiki.apache.org/FLEX/compiling-apache-flex-for-different-locales-and-
> different-versions-of-the-flash-player.html
>
> Look at the bottom of the table - results are quite odd eg en_AU passes but
> en_GB didn't. fr_FR didn't pass the check in tests due to month names being
> different any suggestion on how we might fix this?
>
Probably we should set the locale for checkintests to en_US. Checkintests
is not designed to test locales.
For the rest of the Mustella, there should already be tests that set the
locale to something other than en_US. The problem Frederic had was that
most tests use the default instead of forcing to en_US, but even then, some
tests rely on the operating system's sort order and those failed in
different OS's.
What we did for the latter was set up the test to pre-compute the correct
answer by calling the low-level player APIs. Then the test just proves that
the Flex code doesn't screw up the result. I think that's sufficient
because Mustella isn't set up to test the player, just our code.
If you want to have a test that makes sure we don't lock in a locale value
of en_US like we did in flex-config, I think it would do something similar,
calling some low-level APIs, but we'd have to rely on folks not running on
en_US to run them.
--
Alex Harui
Flex SDK Team
Adobe Systems, Inc.
http://blogs.adobe.com/aharui