This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: [PATCH] codecvt<wchar_t, char, mbstate_t>


Hi,
> > Perhaps we need to scan the list of installed locales to find
> > something with the needed charset (these tests only depend on
> > the charset used by the locale, the language doesn't matter).
[snip] 
> 
> The codecvt testsuite can then use:
> 
> locale loc (create_locale_from_charset("ISO-8859-15"));
> 
> instead of
> 
> locale loc ("en_US.ISO-8859-15");

I found out that this isn't such a great idea after all: If a
test fails, it can be almost impossible to find out why since
it is not known what locale was used. It is better to hardcode
the locale name (using only locales from the official list)
and then generate a log message that includes the name of the
locale if it isn't installed.

Petur


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]