nitlanguage
/
nit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
text: use UInt32 to manipulate chars
[nit.git]
/
lib
/
json
/
static.nit
diff --git
a/lib/json/static.nit
b/lib/json/static.nit
index
f3107cc
..
f5eef1d
100644
(file)
--- a/
lib/json/static.nit
+++ b/
lib/json/static.nit
@@
-81,7
+81,7
@@
redef class Text
if self[i + 5] == '\\' and self[i + 6] == 'u' then
u16_esc <<= 16
u16_esc += from_utf16_digit(i + 7)
- char = u16_esc.from_utf16_surr.code_point
+ char = u16_esc.to_u32.from_utf16_surr.code_point
i += 6
else
char = 0xFFFD.code_point