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.
38 lines
948 B
Text
38 lines
948 B
Text
[ llOrd("", 0)
|
|
, llOrd(".", -2)
|
|
, llOrd(".", -1)
|
|
, llOrd(".", 0)
|
|
, llOrd(".", 1)
|
|
, llOrd(".", 2)
|
|
, llOrd("ð", 0)
|
|
, llOrd("𝄞𝐀", -1)
|
|
, llOrd("𝄞𝐀", 0)
|
|
, llOrd("𝄞𝐀", 1)
|
|
, llOrd("𝄞𝐀", 2)
|
|
, llOrd("𝄞𝐀", 3)
|
|
, llOrd("𝄞𝐀", 4)
|
|
, llOrd(JSON_TRUE, 0)
|
|
, llOrd(llUnescapeURL("%EF%BF%BF"), 0)
|
|
, llEscapeURL(llChar(-123456789))
|
|
, llEscapeURL(llChar(-123))
|
|
, llEscapeURL(llChar(-1))
|
|
, llEscapeURL(llChar(0))
|
|
, llEscapeURL(llChar(1))
|
|
, llEscapeURL(llChar(0xA9))
|
|
, llEscapeURL(llChar(0x14D))
|
|
, llEscapeURL(llChar(0x2010))
|
|
, llEscapeURL(llChar(0xD800))
|
|
, llEscapeURL(llChar(0xDB00))
|
|
, llEscapeURL(llChar(0xFFFE))
|
|
, llEscapeURL(llChar(0xFFFF))
|
|
, llEscapeURL(llChar(0x1F600))
|
|
, llEscapeURL(llChar(0x10FFFF))
|
|
, llEscapeURL(llChar(0x110000))
|
|
, llEscapeURL(llChar(0x200000))
|
|
, llEscapeURL(llChar(0x4000000))
|
|
, llEscapeURL(llChar(0x7F000000))
|
|
, llEscapeURL(llChar(0x80000000))
|
|
, llHash("ð𝄞𝐀")
|
|
, llHash("")
|
|
, llHash("𝐀𝄞ð")
|
|
]
|