lt_string_value assertion and MS x-none languagetag (was: testVerticallyMergedCellBorder failing on some systems)
Eike Rathke
erack at redhat.com
Mon Jul 12 13:13:52 UTC 2021
Hi,
On Saturday, 2021-07-10 10:00:31 +0300, Ilmari Lauhakangas wrote:
> [CUT] sw_core_layout
> [_RUN_____] testVerticallyMergedCellBorder::TestBody
> E: lt_string_value: assertion `string != ((void *)0)' failed
> E: lt_string_value: assertion `string != ((void *)0)' failed
> E: lt_string_value: assertion `string != ((void *)0)' failed
> E: lt_string_value: assertion `string != ((void *)0)' failed
Unrelated to the test failing or not, but I wondered why those
assertions came up and loading the test doc
sw/qa/core/layout/data/vmerge-cell-border.docx
manually yields the same along with
E: lt_string_value: assertion `string != ((void *)0)' failed
warn:i18nlangtag:815276:815276:i18nlangtag/source/languagetag/languagetag.cxx:1587: LanguageTag::getLanguageFromLangtag: pLangT==NULL for 'x-none'
warn:i18nlangtag:815276:815276:i18nlangtag/source/languagetag/languagetag.cxx:1645: LanguageTag::getRegionFromLangtag: pRegionT==NULL for 'x-none'
We do not have any private language tag 'x-none' in our code base and
also grepping over all workdir/UnpackedTarball didn't reveal any but the
document contains it in ./word/settings.xml as
<w:themeFontLang w:val="en-US" w:eastAsia="x-none" w:bidi="x-none"/>
Breaking in LanguageTag implementation revealed that it's passed to
writerfilter/source/dmapper/ThemeTable.cxx
ThemeTable::setThemeFontLangProperties()
the PropertyValue aPropSeq contains
eastAsia = "x-none"
bidi = "x-none"
So apparently this private use languagetag is not so privately used by
MS-Word and escapes to the outer world. Am I guessing right that it
denotes the absence of Asian and CTL font features? Should we handle it
explicitly as a known languagetag? Does anything rely on a valid
conversion to LCID or lang::Locale and back? (I'd guess so..)
Eike
--
GPG key 0x6A6CD5B765632D3A - 2265 D7F3 A7B0 95CC 3918 630B 6A6C D5B7 6563 2D3A
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/libreoffice/attachments/20210712/bc34fd09/attachment.sig>
More information about the LibreOffice
mailing list