[Libreoffice-bugs] [Bug 141384] Missing hyphenation data for installed language after Writer crash and document recovery

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Thu Apr 1 08:55:27 UTC 2021


https://bugs.documentfoundation.org/show_bug.cgi?id=141384

--- Comment #2 from Eike Rathke <erack at redhat.com> ---
(See also https://bugs.documentfoundation.org/show_bug.cgi?id=137742#c28)

Adding findings from
https://bugs.documentfoundation.org/show_bug.cgi?id=137742#c30 so far, to
whoever may be interested in.

Code pointers for that:

Check for hyphenator to output the info message happens in
sw/source/core/text/inftxt.cxx line 1496 of SwTextFormatInfo::IsHyphenate()
with

  if (!xHyph->hasLocale(g_pBreakIt->GetLocale(eTmp)))

where eTmp is LCID 0x040C (1036) for fr-FR and GetLocale() call correctly
results in lang::Locale("fr","FR","") and then in my debug build where I do
have French hyphenation available xHyph->hasLocale() returns true and does not
complain.

The info message in case the locale is not found also only outputs the
language, not the full language tag, so that single "fr" there is explained.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20210401/a1b7e648/attachment.htm>


More information about the Libreoffice-bugs mailing list