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-06-08 12:22:38 -07:00
2024-04-18 17:49:05 -07:00
2024-05-09 15:51:42 -07:00
2024-06-04 10:11:05 +02:00
2024-03-19 11:45:09 -07:00
2024-03-29 22:15:17 -07:00
2024-06-05 18:06:29 -04:00
2024-04-28 21:12:55 +12:00
2024-05-21 19:09:52 +02:00
2024-04-28 00:20:30 -07:00
2024-06-02 16:46:21 -07:00
2024-05-27 20:56:48 -07:00
2024-05-30 09:58:05 +00:00
2024-03-21 14:11:46 -07:00
2024-06-08 16:02:47 -04:00
2024-05-29 10:20:15 -07:00
2024-05-27 20:56:49 -07:00
2024-03-19 11:45:09 -07:00
2024-05-01 12:03:05 -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-26 14:00:13 +02:00
2024-06-12 16:49:00 -04:00
2024-05-03 16:58:53 -04:00
2024-03-21 19:40:56 -07:00
2024-04-02 13:46:51 -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-21 13:46:05 +03:00
2024-06-09 01:55:50 +02:00
2024-05-11 02:17:11 -07:00
2024-05-09 15:04:15 +02:00
2024-03-29 20:34:28 +01:00
2024-05-31 01:25:49 +03:00
2024-05-11 02:17:11 -07:00
2024-05-09 15:04:15 +02:00
2024-05-26 16:13:54 -04:00
2024-03-21 14:11:46 -07:00
2024-05-27 20:56:48 -07:00
2024-05-03 13:27:30 -07:00
2024-05-27 13:22:50 +03:00
2024-03-19 11:45:09 -07:00
2024-05-03 16:58:53 -04:00
2024-05-03 13:27:30 -07:00
2024-05-27 20:56:48 -07:00
2024-04-18 20:08:03 -07:00
2024-06-01 13:28:16 +03:00
2024-05-11 02:17:24 -07:00
2024-06-02 23:29:10 +00:00
2024-04-28 00:20:30 -07:00
2024-04-15 15:24:30 -07:00
2024-05-09 15:04:15 +02:00
2024-04-17 13:41:25 +01:00
2024-03-19 11:45:09 -07:00
2024-06-08 15:35:00 -04:00
2024-05-20 12:04:20 -04:00
2024-05-27 20:56:49 -07:00
2024-06-11 15:24:57 -07:00
2024-05-03 13:27:30 -07:00
2024-05-28 20:44:42 -04:00
2024-05-11 02:17:24 -07:00
2024-05-02 22:09:03 -07:00
2024-06-02 13:03:29 -04:00
2024-05-01 12:03:05 -07:00
2024-06-05 13:43:35 -04:00
2024-05-29 10:20:15 -07:00
2024-05-09 15:04:15 +02:00
2024-05-09 15:04:15 +02:00
2024-04-23 03:20:38 -07:00
2024-04-12 22:37:07 -07:00
2024-06-02 17:35:34 -04:00
2024-05-03 16:58:53 -04:00