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

Mike Kaganski <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #93156|0                           |1
        is obsolete|                            |

--- Comment #6 from Mike Kaganski <[email protected]> ---
Created attachment 113108
  --> https://bugs.documentfoundation.org/attachment.cgi?id=113108&action=edit
WMF with CharSet set to DEFAULT_CHARSET

(In reply to Urmas from comment #5)
> There are LOGFONT structures in metafiles, so they provide charset info
> explicitly.

I agree.
After exploring the contents of the file and referring to [MS-WMF] v.11/1 at
https://msdn.microsoft.com/en-us/library/cc250370.aspx
I see that CharSet fields of Font objects in the original file contain zero
(ANSI_CHARSET = 0x00), i.e. "Specifies the English character set". This is
clearly the fault of the generating SW.

But when I manually set that field to DEFAULT_CHARSET = 0x01, I see that LO
still ignores its locale setting, as if it were ANSI_CHARSET.
In the new attachment, there is a WMF containing single Russian word "Текст"
("Text"). It has CharSet set to DEFAULT_CHARSET.
According to the spec, it should be treated as "a character set based on the
current system locale; for example, when the system locale is United States
English, the default character set is ANSI_CHARSET" (page 31 of abovementioned
doc). But LO imports it as arbacadabra when its locale is set to Russian, which
is inconsistent behaviour WRT spec.

-- 
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