[Libreoffice-bugs] [Bug 130426] Overflow error for unicode beyond Chr(&H7FFF)
bugzilla-daemon at bugs.documentfoundation.org
bugzilla-daemon at bugs.documentfoundation.org
Thu Feb 20 12:25:46 UTC 2020
https://bugs.documentfoundation.org/show_bug.cgi?id=130426
--- Comment #5 from Mike Kaganski <mikekaganski at hotmail.com> ---
FTR:
In StarBasic, Chr works differently in Option VBASupport mode (where only 0-255
are valid).
MS documentation [1] mentions that Chr takes *Long*, while our documentation
[2] states it takes Integer. Btw: see MS documentation about extended Chr range
in some locales.
Possibly it actually makes sense to allow it taking negative values in
non-VBASupport mode. Then passing valid positive integers (in range 0 - 65535)
would be treated normally, and negatives (in -1 - -32768) mapped to positive
values - i.e. what is Stephan is doing in his patch. But shouldn't that be
documented then?
[1]
https://docs.microsoft.com/en-us/office/vba/Language/Reference/User-Interface-Help/chr-function
[2] https://help.libreoffice.org/6.4/en-US/text/sbasic/shared/03120102.html
--
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/20200220/a9087b27/attachment.htm>
More information about the Libreoffice-bugs
mailing list