Skip to content

Commit 53409bc

Browse files
committed
Unicode string like § is not allowed in C files at ruby/ruby repo
1 parent 887dafc commit 53409bc

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

ext/json/ext/parser/parser.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1492,8 +1492,8 @@ static VALUE json_string_unescape(char *string, char *stringEnd, int intern, int
14921492
* to make a 20-bit number, then add 0x10000 to get the
14931493
* final codepoint.
14941494
*
1495-
* See Unicode 15: §3.8 "Surrogates", §5.3 "Handling
1496-
* Surrogate Pairs in UTF-16", and §23.6 "Surrogates
1495+
* See Unicode 15: 3.8 "Surrogates", 5.3 "Handling
1496+
* Surrogate Pairs in UTF-16", and 23.6 "Surrogates
14971497
* Area".
14981498
*/
14991499
if ((ch & 0xFC00) == 0xD800) {

ext/json/ext/parser/parser.rl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -503,8 +503,8 @@ static VALUE json_string_unescape(char *string, char *stringEnd, int intern, int
503503
* to make a 20-bit number, then add 0x10000 to get the
504504
* final codepoint.
505505
*
506-
* See Unicode 15: §3.8 "Surrogates", §5.3 "Handling
507-
* Surrogate Pairs in UTF-16", and §23.6 "Surrogates
506+
* See Unicode 15: 3.8 "Surrogates", 5.3 "Handling
507+
* Surrogate Pairs in UTF-16", and 23.6 "Surrogates
508508
* Area".
509509
*/
510510
if ((ch & 0xFC00) == 0xD800) {

0 commit comments

Comments
 (0)