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

--- Comment #10 from Mike Kaganski <[email protected]> 2012-09-15 
11:56:59 UTC ---
It depends on Options->Languages->Locale setting. If it is set to Russian, then
the document is opened OK (regardless of Default language for documents:
Western setting). Otherwise, it shows garbage.

And this is despite this specific document (unlike, say, Bug 48023) has all and
every info that is needed to interpret it correctly: its \ansicpg control word
is set to 1251; \deflang and \deflangfe are 1049; and even the font name
contains "Cyr" (though this latter should not mean something special to the
parser).

This problem seems to be caused by the fact that this document is invalid in
that it contains the 8-bit characters. The standard requires that all not-7bit
text to be encoded either as \'xx or as unicode \uxxx. Still, the standard
requires reader software to be prepared to see 8-bit bytes (in binary blocks).

Seems like LO RTF importer only uses the RTF-defined locale settings when it
sees properly encoded non-7bit characters; every plain character is internally
converted to Unicode using the LO locale.

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- 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