https://bugs.freedesktop.org/show_bug.cgi?id=58503

Stephan Bergmann <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[email protected]

--- Comment #21 from Stephan Bergmann <[email protected]> ---
The difference between libreoffice-3-6 and master is the behaviour of
LngSvcMgr::getAvailableServices (linguistic/source/lngsvcmgr.cxx) when called
with rServiceName = "com.sun.star.linguistic2.Proofreader" and an empty rLocale
(i.e., all Language/Country/Variant members being empty strings).  On both
branches, pInfoArray has one element, but master's

LanguageType nLanguage = LanguageTag( rLocale ).getLanguageType();

sets nLanguage to match the system locale (LANGUAGE_RUSSIAN = 0x0419 in the
scenario from comment 19), so the following check against LANGUAGE_NONE fails
(and the call to getAvailableServices returns an empty sequence), whereas
libreoffce-3-6's

LanguageType nLanguage = LocaleToLanguage( rLocale );

sets nLanguage to LANGUAGE_NONE = 0x00FF, so the following check succeeds (and
the call to getAvailableServices returns a one-element sequence).

This is due to
<http://cgit.freedesktop.org/libreoffice/core/commit/?id=d7a5ec62e91ce3dc5b784815254218f16181f676>
"get rid of CreateLocale() and related."  Eike, please take over.

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs

Reply via email to