mirror of
https://github.com/Sei-Lisa/LSL-PyOptimizer
synced 2025-07-01 15:48:21 +00:00
Previously, llChar formed an UTF-8-1993 string with the given code and converted that, resulting in multiple question marks when the conversion to Unicode forced by Mono caused errors in multiple characters. They have changed the implementation and now it also considers U+FFFF invalid, and only returns one U+FFFD character if the input is invalid, and LSO behaves the same as Mono (no UTF-8-1993 anymore). We've also detected problems with Windows (who else would it be) for the Unicode "astral" planes (planes beyond the Basic Multilingual Plane), so now there are new tests that include characters > U+FFFF. And since some builds of Python 2 use UTF-16 internally, we also check llSubString and friends with positions after an astral plane character. This is currently failing under Windows, as there are numerous encoding and line ending problems happening on that OS, especially with Python 3.
200 lines
No EOL
1.7 KiB
Text
200 lines
No EOL
1.7 KiB
Text
[ "abc"
|
||
, "abc"
|
||
, "abc"
|
||
, "abc"
|
||
, "abc"
|
||
, "abcxy"
|
||
, "abcxy"
|
||
, "abcxy"
|
||
, "xabcy"
|
||
, "xyabc"
|
||
, "xyabc"
|
||
, "AZAZAZAZ𐐀𐐧𐐨𐑏ßΣΣႠჅაჵ"
|
||
, "azazazaz𐐀𐐧𐐨𐑏ßςσაჵაჵ"
|
||
, "ΤΆΧΙΣΤΗ ΑΛΏΠΗΞ ΒΑΦΉΣ ΨΗΜΈΝΗ ΓΗ, ΔΡΑΣΚΕΛΊΖΕΙ ΥΠΈΡ ΝΩΘΡΟΎ ΚΥΝΌΣ"
|
||
, "τάχιστη αλώπηξ βαφήσ ψημένη γη, δρασκελίζει υπέρ νωθρού κυνόσ"
|
||
, "abcd"
|
||
, "abcd"
|
||
, "bcd"
|
||
, "cd"
|
||
, "d"
|
||
, ""
|
||
, "bcd"
|
||
, ""
|
||
, ""
|
||
, ""
|
||
, ""
|
||
, ""
|
||
, ""
|
||
, "abcd"
|
||
, "bcd"
|
||
, "cd"
|
||
, ""
|
||
, "bcd"
|
||
, ""
|
||
, ""
|
||
, ""
|
||
, ""
|
||
, ""
|
||
, "bcd"
|
||
, ""
|
||
, "bcd"
|
||
, ""
|
||
, ""
|
||
, ""
|
||
, "ab"
|
||
, "b"
|
||
, ""
|
||
, "abd"
|
||
, "ab"
|
||
, "b"
|
||
, ""
|
||
, "abd"
|
||
, "ab"
|
||
, "ab"
|
||
, "ab"
|
||
, "abc"
|
||
, "bc"
|
||
, "c"
|
||
, ""
|
||
, "abc"
|
||
, "bc"
|
||
, "c"
|
||
, ""
|
||
, "abc"
|
||
, "abc"
|
||
, "abc"
|
||
, ""
|
||
, ""
|
||
, "bcd"
|
||
, ""
|
||
, "bcd"
|
||
, ""
|
||
, ""
|
||
, "abc"
|
||
, "bc"
|
||
, "abc"
|
||
, "bc"
|
||
, ""
|
||
, "abc"
|
||
, "abc"
|
||
, "abc"
|
||
, "abcd"
|
||
, "abcd"
|
||
, "bcd"
|
||
, ""
|
||
, "bcd"
|
||
, "d"
|
||
, ""
|
||
, "abcd"
|
||
, "abcd"
|
||
, "abcd"
|
||
, "abcd"
|
||
, "bcd"
|
||
, ""
|
||
, "bcd"
|
||
, "d"
|
||
, ""
|
||
, ""
|
||
, ""
|
||
, ""
|
||
, ""
|
||
, ""
|
||
, "a"
|
||
, "ab"
|
||
, "abc"
|
||
, "abcd"
|
||
, "a"
|
||
, "abcd"
|
||
, "abcd"
|
||
, "abcd"
|
||
, "abcd"
|
||
, "abcd"
|
||
, "abcd"
|
||
, ""
|
||
, "a"
|
||
, "ab"
|
||
, "abcd"
|
||
, "a"
|
||
, "abcd"
|
||
, "abcd"
|
||
, "abcd"
|
||
, "abcd"
|
||
, "abcd"
|
||
, "a"
|
||
, "abcd"
|
||
, "a"
|
||
, "abcd"
|
||
, "abcd"
|
||
, "abcd"
|
||
, "cd"
|
||
, "acd"
|
||
, "abcd"
|
||
, "c"
|
||
, "cd"
|
||
, "acd"
|
||
, "abcd"
|
||
, "c"
|
||
, "cd"
|
||
, "cd"
|
||
, "cd"
|
||
, "d"
|
||
, "ad"
|
||
, "abd"
|
||
, "abcd"
|
||
, "d"
|
||
, "ad"
|
||
, "abd"
|
||
, "abcd"
|
||
, "d"
|
||
, "d"
|
||
, "d"
|
||
, "abcd"
|
||
, "abcd"
|
||
, "a"
|
||
, "abcd"
|
||
, "a"
|
||
, "abcd"
|
||
, "abcd"
|
||
, "d"
|
||
, "ad"
|
||
, "d"
|
||
, "ad"
|
||
, "abcd"
|
||
, "d"
|
||
, "d"
|
||
, "d"
|
||
, ""
|
||
, ""
|
||
, "a"
|
||
, "abcd"
|
||
, "a"
|
||
, "abc"
|
||
, "abcd"
|
||
, ""
|
||
, ""
|
||
, ""
|
||
, ""
|
||
, "a"
|
||
, "abcd"
|
||
, "a"
|
||
, "abc"
|
||
, "abcd"
|
||
, "abcd"
|
||
, "abcd"
|
||
, "😀"
|
||
, "b"
|
||
, "c"
|
||
, "d"
|
||
, ""
|
||
, ""
|
||
, 0
|
||
, 11
|
||
, -1
|
||
, 0
|
||
, -1
|
||
, 0
|
||
, -1
|
||
, "a"
|
||
, ""
|
||
] |