Victor Stinner
9f2f1dd131
gh-94526: getpath_dirname() no longer encodes the path ( #97645 )
...
Fix the Python path configuration used to initialized sys.path at
Python startup. Paths are no longer encoded to UTF-8/strict to avoid
encoding errors if it contains surrogate characters (bytes paths are
decoded with the surrogateescape error handler).
getpath_basename() and getpath_dirname() functions no longer encode
the path to UTF-8/strict, but work directly on Unicode strings. These
functions now use PyUnicode_FindChar() and PyUnicode_Substring() on
the Unicode path, rather than strrchr() on the encoded bytes string.
2022-09-30 14:58:30 +02:00
..
2022-08-13 12:09:40 +02:00
2022-09-26 17:27:44 +01:00
2022-05-13 12:41:05 +02:00
2022-08-13 12:09:40 +02:00
2022-08-13 12:09:40 +02:00
2022-08-13 12:09:40 +02:00
2022-08-13 12:09:40 +02:00
2022-08-13 12:09:40 +02:00
2022-08-13 12:09:40 +02:00
2022-09-15 16:42:37 +01:00
2022-08-13 12:09:40 +02:00
2022-09-25 14:32:48 +01:00
2022-09-22 21:25:05 +09:00
2022-07-27 16:03:38 +01:00
2022-09-30 09:43:02 +01:00
2022-09-06 19:37:18 -04:00
2022-06-29 17:51:36 +02:00
2022-08-11 15:25:49 -06:00
2022-05-03 21:42:14 +02:00
2022-05-13 12:41:05 +02:00
2022-07-07 03:57:45 -07:00
2022-08-28 14:27:42 -07:00
2022-09-08 19:32:40 -07:00
2022-06-14 07:15:26 +03:00
2022-09-07 20:13:07 +09:00
2022-09-08 19:32:40 -07:00
2022-06-21 22:04:03 +02:00
2021-10-22 15:36:28 +02:00
2022-08-06 15:55:24 +09:00
2022-04-09 09:54:54 +09:00
2022-07-27 05:03:50 -07:00
2022-03-05 01:38:56 +09:00
2021-10-25 01:25:27 -07:00
2022-07-01 15:33:35 +01:00
2022-06-21 22:04:03 +02:00
2022-06-28 10:01:43 +03:00
2022-05-27 15:05:35 +02:00
2022-02-11 17:22:11 +01:00
2022-08-11 15:25:49 -06:00
2022-07-21 11:44:30 -07:00
2022-03-02 00:38:21 +09:00
2022-07-26 02:23:33 -05:00
2022-09-25 14:32:48 +01:00
2022-05-03 21:42:14 +02:00
2022-04-28 16:30:28 +02:00
2022-09-19 15:59:13 +08:00
2022-08-25 10:16:55 +01:00
2022-05-03 21:42:14 +02:00
2022-07-27 16:03:38 +01:00
2022-03-17 13:05:52 +02:00
2022-09-06 17:37:47 +01:00
2021-11-24 10:20:37 +01:00
2022-03-07 18:57:45 +09:00
2022-06-07 00:47:27 +01:00
2022-06-19 12:02:33 +02:00
2022-06-14 07:15:26 +03:00
2022-07-27 08:19:23 +02:00
2022-06-14 07:15:26 +03:00
2022-08-26 22:33:29 -07:00
2022-04-07 12:27:35 -07:00
2022-05-25 11:38:47 -04:00
2022-02-25 01:32:57 +01:00
2022-08-16 20:20:15 +02:00
2022-09-26 18:12:19 +02:00
2022-06-06 23:21:58 +02:00
2022-08-04 18:12:35 +02:00
2022-08-04 11:28:15 -06:00
2022-07-27 08:19:23 +02:00
2022-07-27 08:19:23 +02:00
2021-12-03 00:08:42 +00:00
2022-09-30 14:58:30 +02:00
2022-08-16 20:20:15 +02:00
2022-02-15 09:02:21 +09:00
2022-07-23 12:29:00 +02:00
2022-08-26 12:31:58 +02:00
2022-06-12 18:45:02 +09:00
2021-10-22 15:36:28 +02:00
2022-06-29 07:20:53 +02:00
2022-05-03 21:42:14 +02:00
2022-04-20 13:46:08 +03:00
2022-08-01 17:30:15 +01:00
2022-08-30 10:11:18 -07:00
2021-11-25 12:28:41 +01:00
2022-02-07 16:21:31 +01:00
2022-08-15 07:41:10 +02:00
2022-07-29 12:48:11 +01:00
2022-07-26 11:16:51 +02:00
2022-07-14 00:51:49 -07:00
2022-04-04 10:53:26 +03:00
2022-08-10 09:10:25 +02:00
2021-10-22 15:36:28 +02:00
2021-10-22 15:36:28 +02:00
2021-10-22 15:36:28 +02:00
2022-09-13 09:25:16 +01:00
2022-07-27 08:19:23 +02:00
2022-05-25 04:44:57 +02:00
2022-04-23 14:48:17 -07:00
2022-07-26 14:34:15 +03:00
2022-06-14 07:15:26 +03:00
2022-09-13 15:45:12 -07:00
2022-09-13 15:45:12 -07:00
2022-09-13 15:45:12 -07:00
2022-06-10 12:39:02 +02:00
2022-07-27 16:03:38 +01:00
2022-06-10 12:39:02 +02:00
2022-05-03 21:42:14 +02:00
2022-03-20 12:28:15 -07:00