From 53409bcc74993d7b3b3b0087e025584091f84f9d Mon Sep 17 00:00:00 2001 From: Hiroshi SHIBATA Date: Tue, 8 Oct 2024 11:44:12 +0900 Subject: [PATCH] =?UTF-8?q?Unicode=20string=20like=20=C2=A7=20is=20not=20a?= =?UTF-8?q?llowed=20in=20C=20files=20at=20ruby/ruby=20repo?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ext/json/ext/parser/parser.c | 4 ++-- ext/json/ext/parser/parser.rl | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/ext/json/ext/parser/parser.c b/ext/json/ext/parser/parser.c index b7428891a..37627edbd 100644 --- a/ext/json/ext/parser/parser.c +++ b/ext/json/ext/parser/parser.c @@ -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 * final codepoint. * - * See Unicode 15: §3.8 "Surrogates", §5.3 "Handling - * Surrogate Pairs in UTF-16", and §23.6 "Surrogates + * See Unicode 15: 3.8 "Surrogates", 5.3 "Handling + * Surrogate Pairs in UTF-16", and 23.6 "Surrogates * Area". */ if ((ch & 0xFC00) == 0xD800) { diff --git a/ext/json/ext/parser/parser.rl b/ext/json/ext/parser/parser.rl index 959b6e738..7c41883d8 100644 --- a/ext/json/ext/parser/parser.rl +++ b/ext/json/ext/parser/parser.rl @@ -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 * final codepoint. * - * See Unicode 15: §3.8 "Surrogates", §5.3 "Handling - * Surrogate Pairs in UTF-16", and §23.6 "Surrogates + * See Unicode 15: 3.8 "Surrogates", 5.3 "Handling + * Surrogate Pairs in UTF-16", and 23.6 "Surrogates * Area". */ if ((ch & 0xFC00) == 0xD800) {