[Libreoffice-bugs] [Bug 97706] CLEAN is neither ODF nor OOXML conform
bugzilla-daemon at bugs.documentfoundation.org
bugzilla-daemon at bugs.documentfoundation.org
Thu Aug 17 20:06:21 UTC 2017
https://bugs.documentfoundation.org/show_bug.cgi?id=97706
Taylor <taylorleebiz at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |ASSIGNED
CC| |taylorleebiz at gmail.com
Assignee|libreoffice-bugs at lists.free |taylorleebiz at gmail.com
|desktop.org |
--- Comment #3 from Taylor <taylorleebiz at gmail.com> ---
Using http://www.unicode.org/Public/UNIDATA/UnicodeData.txt as reference, we
can grep for ';(Cc|Cn);'.
We find that Cc and Cn chars are:
0x00 to 0x1F (inclusive)
0x7F to 0x9F (inclusive)
Using the above info, we can update the CLEAN isPrintable() function.
I also added CLEAN.OOXML using a new isPrintable_OOXML() function that returns
true only if c > 0x1f.
Using the following fods to verify, I found that the CHAR function is not
appropriate to use with CLEAN since CHAR returns 0xfffd for the range of 0x80
to 0xFF inclusive. 0x100 and above returns Err:502.
core/sc/qa/unit/data/functions/text/fods/clean.fods
Changing CHAR to UNICHAR, we can then successfully test the range 0x80 to 0x9F.
I'll attempt to use gerrit to start the patch process.
--
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/20170817/58287097/attachment.html>
More information about the Libreoffice-bugs
mailing list