summaryrefslogtreecommitdiff
path: root/tests/projects/csharp
diff options
context:
space:
mode:
authorzjncs <[email protected]>2026-09-04 15:08:29 +0800
committerzjncs <[email protected]>2026-09-04 15:08:29 +0800
commit51d314dfc7fd288ae9bc600149155df6b8476d27 (patch)
tree56bf474859fdc732aa547443e1d3cbdc93350ce9 /tests/projects/csharp
parentc1a32b8b31bb78cf4ac4b51b0a7a08b6c4224505 (diff)
support unicode escapes in the pure lua json decoder
json.decode(str, {pure = true}) dropped the backslash-u of \uXXXX escapes and kept the following four hex digits verbatim, e.g. "a\u0041b" decoded to "au0041b" instead of "Ab", while the C decoder returns "Ab". Decode \uXXXX escapes to UTF-8 in the pure decoder, combine surrogate pairs, e.g. \uD83D\uDE00, and raise an error for invalid or lone surrogate escapes, matching the behavior of the C decoder.
Diffstat (limited to 'tests/projects/csharp')
0 files changed, 0 insertions, 0 deletions