resolved fdo#62278 test for LanguageTag equality resolving system locale

Change-Id: Ic50c6d02a3feaf72060defa50766b40b5dec1cf7
This commit is contained in:
Eike Rathke
2013-03-13 16:41:34 +01:00
parent fb26196ce6
commit dde0dcd553

View File

@@ -972,7 +972,7 @@ sal_uInt32 SvNumberFormatter::ImpGenerateCL( LanguageType eLnge, bool bNoAdditio
if (LocaleDataWrapper::areChecksEnabled())
{
const LanguageTag& rLoadedLocale = xLocaleData->getLoadedLanguageTag();
if ( rLoadedLocale != maLanguageTag )
if ( !rLoadedLocale.equals( maLanguageTag, true) )
{
OUString aMsg("SvNumerFormatter::ImpGenerateCL: locales don't match:");
LocaleDataWrapper::outputCheckMessage( xLocaleData->appendLocaleInfo( aMsg ));