[libcxx] r231649 - Add CloudABI locale names to platform_support.h.

Jonathan Roelofs jroelofs.lists at gmail.com
Mon Mar 9 16:25:37 PDT 2015


Ed,

I don't know how much of the tests you've got running at the moment, but 
there's a corresponding change needed to the lit config to get the 
xfails for these to DoTheRightThing TM: 
https://github.com/llvm-mirror/libcxx/blob/master/test/libcxx/test/config.py#L236


Cheers,

Jon

On 3/9/15 6:04 AM, Ed Schouten wrote:
> Author: ed
> Date: Mon Mar  9 07:04:16 2015
> New Revision: 231649
>
> URL: http://llvm.org/viewvc/llvm-project?rev=231649&view=rev
> Log:
> Add CloudABI locale names to platform_support.h.
>
> On CloudABI we should append the timezone name to the end of the locale
> (e.g., nl_NL.UTF-8 at Europe/Amsterdam). By fixing the locale names we can
> already let a lot of locale related tests pass.
>
> Modified:
>      libcxx/trunk/test/support/platform_support.h
>
> Modified: libcxx/trunk/test/support/platform_support.h
> URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/support/platform_support.h?rev=231649&r1=231648&r2=231649&view=diff
> ==============================================================================
> --- libcxx/trunk/test/support/platform_support.h (original)
> +++ libcxx/trunk/test/support/platform_support.h Mon Mar  9 07:04:16 2015
> @@ -25,6 +25,16 @@
>   #define LOCALE_fr_CA_ISO8859_1 "French_Canada.1252"
>   #define LOCALE_ru_RU_UTF_8     "Russian_Russia.1251"
>   #define LOCALE_zh_CN_UTF_8     "Chinese_China.936"
> +#elif defined(__CloudABI__)
> +// Timezones are integrated into locales through LC_TIMEZONE_MASK on
> +// CloudABI. LC_ALL_MASK can only be used if a timezone has also been
> +// provided. UTC should be all right.
> +#define LOCALE_en_US_UTF_8     "en_US.UTF-8 at UTC"
> +#define LOCALE_fr_FR_UTF_8     "fr_FR.UTF-8 at UTC"
> +#define LOCALE_fr_CA_ISO8859_1 "fr_CA.ISO-8859-1 at UTC"
> +#define LOCALE_cs_CZ_ISO8859_2 "cs_CZ.ISO-8859-2 at UTC"
> +#define LOCALE_ru_RU_UTF_8     "ru_RU.UTF-8 at UTC"
> +#define LOCALE_zh_CN_UTF_8     "zh_CN.UTF-8 at UTC"
>   #else
>   #define LOCALE_en_US_UTF_8     "en_US.UTF-8"
>   #define LOCALE_fr_FR_UTF_8     "fr_FR.UTF-8"
>
>
> _______________________________________________
> cfe-commits mailing list
> cfe-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits
>

-- 
Jon Roelofs
jonathan at codesourcery.com
CodeSourcery / Mentor Embedded



More information about the cfe-commits mailing list