[ruby/json] Unicode string like § is not allowed in C files at ruby/ruby repo
https://github.com/ruby/json/commit/53409bcc74
This commit is contained in:
parent
718c4f7e1e
commit
8a79f345a2
@ -1492,8 +1492,8 @@ static VALUE json_string_unescape(char *string, char *stringEnd, int intern, int
|
|||||||
* to make a 20-bit number, then add 0x10000 to get the
|
* to make a 20-bit number, then add 0x10000 to get the
|
||||||
* final codepoint.
|
* final codepoint.
|
||||||
*
|
*
|
||||||
* See Unicode 15: §3.8 "Surrogates", §5.3 "Handling
|
* See Unicode 15: 3.8 "Surrogates", 5.3 "Handling
|
||||||
* Surrogate Pairs in UTF-16", and §23.6 "Surrogates
|
* Surrogate Pairs in UTF-16", and 23.6 "Surrogates
|
||||||
* Area".
|
* Area".
|
||||||
*/
|
*/
|
||||||
if ((ch & 0xFC00) == 0xD800) {
|
if ((ch & 0xFC00) == 0xD800) {
|
||||||
|
@ -503,8 +503,8 @@ static VALUE json_string_unescape(char *string, char *stringEnd, int intern, int
|
|||||||
* to make a 20-bit number, then add 0x10000 to get the
|
* to make a 20-bit number, then add 0x10000 to get the
|
||||||
* final codepoint.
|
* final codepoint.
|
||||||
*
|
*
|
||||||
* See Unicode 15: §3.8 "Surrogates", §5.3 "Handling
|
* See Unicode 15: 3.8 "Surrogates", 5.3 "Handling
|
||||||
* Surrogate Pairs in UTF-16", and §23.6 "Surrogates
|
* Surrogate Pairs in UTF-16", and 23.6 "Surrogates
|
||||||
* Area".
|
* Area".
|
||||||
*/
|
*/
|
||||||
if ((ch & 0xFC00) == 0xD800) {
|
if ((ch & 0xFC00) == 0xD800) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user