We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 750db4a + 5849087 commit e8fb929Copy full SHA for e8fb929
src/utf8.jl
@@ -253,7 +253,7 @@ function convert(::Type{UTF8String}, dat::Vector{UInt8})
253
else
254
# Pick up surrogate pairs (CESU-8 format)
255
ch = ((((((ch & 0x3f) << 6) | (dat[pos + 1] & 0x3f)) << 10)
256
- + (((dat[pos + 3] & 0x3f)%UInt32 << 6) | (dat[pos + 4] & 0x3f)))
+ + ((((dat[pos + 3] & 0x3f)%UInt32) << 6) | (dat[pos + 4] & 0x3f)))
257
- 0x01f0c00)
258
pos += 4
259
output_utf8_4byte!(buf, out, ch)
0 commit comments