tao
f130922744
fix(path): normalize path slashes on Windows #37729
...
Problem:
On Windows, path separators may become inconsistent for various reasons,
which makes normalization quite painful.
Solution:
Normalize paths to `/` at the entry boundaries and always use it
internally, converting back only in rare cases where `\` is really
needed (e.g. cmd.exe/bat scripts?).
This is the first commit in a series of incremental steps.
Note:
* some funcs won't respect shellslash. e.g. `expand/fnamemodify`
* some funcs still respect shellslash, but will be updated in a follow
PR. e.g. `ex_pwd/f_chdir/f_getcwd`
* uv's built-in funcs always return `\`. e.g. `uv.cwd/uv.exepath`
Co-authored-by: Justin M. Keyes <justinkz@gmail.com >
2026-04-24 13:20:25 -04:00
..
2024-04-23 18:17:04 +02:00
2024-04-23 18:17:04 +02:00
2024-04-23 18:17:04 +02:00
2024-04-23 18:17:04 +02:00
2026-02-20 06:53:33 +08:00
2025-04-12 08:24:42 -07:00
2024-10-24 10:03:23 +08:00
2024-04-23 18:17:04 +02:00
2024-04-23 18:17:04 +02:00
2024-04-23 18:17:04 +02:00
2024-04-23 18:17:04 +02:00
2024-04-23 18:17:04 +02:00
2024-04-23 18:17:04 +02:00
2024-04-23 18:17:04 +02:00
2024-04-23 18:17:04 +02:00
2025-08-23 23:47:26 -04:00
2025-10-20 22:21:09 -04:00
2024-04-23 18:17:04 +02:00
2024-04-23 18:17:04 +02:00
2024-04-23 18:17:04 +02:00
2025-03-14 09:12:35 +00:00
2024-04-23 18:17:04 +02:00
2025-02-26 23:06:22 +01:00
2024-04-23 18:17:04 +02:00
2025-02-26 23:06:22 +01:00
2024-04-23 18:17:04 +02:00
2024-04-23 18:17:04 +02:00
2024-04-23 18:17:04 +02:00
2024-04-23 18:17:04 +02:00
2025-05-04 11:22:57 -04:00
2024-04-23 18:17:04 +02:00
2026-04-20 14:16:41 -04:00
2024-04-23 18:17:04 +02:00
2025-02-26 23:06:22 +01:00
2024-11-14 12:40:57 +01:00
2024-04-23 18:17:04 +02:00
2024-04-23 18:17:04 +02:00
2024-04-23 18:17:04 +02:00
2024-04-23 18:17:04 +02:00
2025-03-14 09:12:35 +00:00
2024-04-23 18:17:04 +02:00
2024-10-31 00:04:51 +00:00
2024-04-23 18:17:04 +02:00
2024-04-23 18:17:04 +02:00
2024-04-23 18:17:04 +02:00
2024-04-23 18:17:04 +02:00
2024-04-23 18:17:04 +02:00
2024-04-23 18:17:04 +02:00
2024-04-23 18:17:04 +02:00
2024-04-23 18:17:04 +02:00
2024-04-23 18:17:04 +02:00
2024-04-23 18:17:04 +02:00
2026-04-24 13:20:25 -04:00
2024-04-23 18:17:04 +02:00
2024-04-23 18:17:04 +02:00
2024-04-23 18:17:04 +02:00
2024-04-23 18:17:04 +02:00
2024-11-14 12:40:57 +01:00
2025-05-04 11:22:57 -04:00
2024-11-14 12:40:57 +01:00
2026-04-20 14:16:41 -04:00
2026-02-08 07:04:36 +08:00
2025-07-06 16:17:06 -07:00
2025-05-25 22:51:15 +00:00
2024-04-23 18:17:04 +02:00
2025-03-04 12:32:22 +01:00
2024-04-23 18:17:04 +02:00
2024-04-23 18:17:04 +02:00
2024-04-23 18:17:04 +02:00
2026-01-24 10:04:44 +08:00
2026-04-15 18:22:05 +08:00
2024-04-23 18:17:04 +02:00
2024-04-23 18:17:04 +02:00
2026-03-29 22:30:41 +08:00
2024-11-14 12:40:57 +01:00
2025-12-28 00:37:55 +00:00
2025-12-02 07:24:28 +08:00
2026-04-20 14:16:41 -04:00
2024-11-14 12:40:57 +01:00
2025-12-09 22:25:34 +08:00
2025-02-21 07:45:30 +08:00
2024-04-23 18:17:04 +02:00
2026-04-20 14:16:41 -04:00
2024-11-14 12:40:57 +01:00
2024-11-14 12:40:57 +01:00
2024-04-23 18:17:04 +02:00
2024-04-23 18:17:04 +02:00
2026-01-24 06:55:54 +08:00
2026-04-20 14:16:41 -04:00
2024-04-23 18:17:04 +02:00
2024-04-23 18:17:04 +02:00
2024-04-23 18:17:04 +02:00
2024-11-14 12:40:57 +01:00
2026-04-20 14:16:41 -04:00
2024-04-23 18:17:04 +02:00
2025-10-20 22:21:09 -04:00
2024-04-23 18:17:04 +02:00
2025-02-26 23:06:22 +01:00
2024-11-14 12:40:57 +01:00
2026-04-04 20:49:26 +08:00
2024-11-14 12:40:57 +01:00
2024-04-23 18:17:04 +02:00
2024-11-14 12:40:57 +01:00
2026-03-25 07:38:22 +08:00
2025-03-02 11:57:41 +01:00
2026-03-31 09:13:54 +08:00
2024-04-23 18:17:04 +02:00
2024-11-14 12:40:57 +01:00
2024-04-23 18:17:04 +02:00
2026-03-09 07:05:47 +08:00
2025-03-04 12:32:22 +01:00
2026-04-20 14:16:41 -04:00
2026-04-20 14:16:41 -04:00
2024-11-14 12:40:57 +01:00
2024-04-23 18:17:04 +02:00
2025-02-24 04:16:36 +00:00
2026-04-22 10:14:52 +08:00
2024-04-23 18:17:04 +02:00
2026-03-23 09:38:48 +08:00
2026-01-10 08:03:10 +08:00
2024-12-14 10:21:50 -08:00
2024-11-14 12:40:57 +01:00
2025-09-13 13:34:58 -07:00
2025-01-02 06:40:39 -08:00
2024-04-23 18:17:04 +02:00
2024-11-14 12:40:57 +01:00
2026-04-20 14:16:41 -04:00
2024-04-23 18:17:04 +02:00
2024-04-23 18:17:04 +02:00
2024-11-14 12:40:57 +01:00
2024-11-14 12:40:57 +01:00
2025-10-09 07:49:05 +08:00
2024-04-23 18:17:04 +02:00
2024-04-23 18:17:04 +02:00