You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@openoffice.apache.org by bu...@apache.org on 2014/08/23 16:18:13 UTC

[Issue 125495] Awkward Chinese (ZH-TW) numbering suffix when importing RTF document

https://issues.apache.org/ooo/show_bug.cgi?id=125495

--- Comment #1 from Mark Hung <ma...@gmail.com> ---
Created attachment 83881
  --> https://issues.apache.org/ooo/attachment.cgi?id=83881&action=edit
Patch to fix Chinese numbering suffix issue in RTF parser


Because codepage encoding options like \ansicp950 appears later than the first
bracket '{', the first parsing state has been pushed into the stack before
correct encoding were set. Later when it was popped, the encoding of later
state were affected and become the default even if \ansicp950 already appears,
in consequence it affect multibyte string conversion for text token. Updated
code will overwrite the encoding of the state on top of the frame, and has
verified to work in my environment.

In theory , all multibyte chracter encoding ( not merely ZH-TTW) were affected.

-- 
You are receiving this mail because:
You are the assignee for the issue.
You are watching all issue changes.