Ryan Liptak 0cef727e59 More precise error message for unencodable \u escapes
The surrogate code points U+D800 to U+DFFF are valid code points but are not Unicode scalar values. This commit makes the error message more accurately reflect what is actually allowed in `\u` escape sequences.

From https://www.unicode.org/versions/Unicode15.0.0/ch03.pdf:

> D71 High-surrogate code point: A Unicode code point in the range U+D800 to U+DBFF.
> D73 Low-surrogate code point: A Unicode code point in the range U+DC00 to U+DFFF.
>
> 3.9 Unicode Encoding Forms
> D76 Unicode scalar value: Any Unicode code point except high-surrogate and low-surrogate code points.

Related: #20270
2024-06-12 16:49:00 -04:00
..
2024-03-19 11:45:09 -07:00
2024-03-29 22:15:17 -07:00
2024-03-21 14:11:46 -07:00
2024-05-29 10:20:15 -07:00
2024-03-19 11:45:09 -07:00
2024-05-08 19:37:28 -07:00
2024-05-03 20:58:02 -07:00
2024-03-21 14:11:46 -07:00
2024-03-21 14:11:46 -07:00
2024-03-15 02:28:50 -04:00
2024-03-21 14:11:46 -07:00
2024-05-11 02:17:11 -07:00
2024-05-26 16:13:54 -04:00
2024-03-21 14:11:46 -07:00
2024-03-19 11:45:09 -07:00
2024-06-01 13:28:16 +03:00
2024-04-15 15:24:30 -07:00
2024-03-19 11:45:09 -07:00
2024-06-08 15:35:00 -04:00
2024-06-02 13:03:29 -04:00
2024-06-05 13:43:35 -04:00
2024-05-29 10:20:15 -07:00
2024-06-02 17:35:34 -04:00