Skip to content

Unicode string like § is not allowed in C files at ruby/ruby repo #603

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions ext/json/ext/parser/parser.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
4 changes: 2 additions & 2 deletions ext/json/ext/parser/parser.rl
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
Loading