tao
7bf2ab4b87
fix(path): nvim_get_runtime_file fails on DOS 8.3 filename #40144
...
Problem:
stdpath() may return a DOS 8.3 "shortened" filename, because Windows
truncates some long usernames into `6ch~N` names. Then features such
as `nvim_get_runtime_file` fail to find the file.
Analysis:
When expanding an 8.3 filename path like `C:/Users/ADMINI~1/AppData/*`,
we treat `~` as a special character and first check whether a directory
named `ADMINI~1` exists under `Users`. Since no such directory actually
exists, the expansion fails.
Solution:
Treat `~` as a literal character in `do_path_expand`. Since the `~/`
case is already handled in `gen_expand_wildcards`, any remaining `~` is
just a literal character and will later be escaped to `\~` by
`file_pat_to_reg_pat` if needed.
2026-06-10 07:46:55 -04:00
..
2026-06-08 16:12:14 -04:00
2026-05-21 09:35:27 +08:00
2026-05-11 11:00:03 +02:00
2025-08-14 09:34:38 +02:00
2026-06-04 14:35:41 +02:00
2026-05-11 11:00:03 +02:00
2026-06-03 16:57:13 -04:00
2026-05-16 05:15:05 -04:00
2026-05-18 11:20:18 +02:00
2026-01-17 13:22:55 +00:00
2026-04-13 18:15:34 -04:00
2025-08-14 09:34:38 +02:00
2025-08-14 09:34:38 +02:00
2026-04-24 13:20:25 -04:00
2025-08-14 09:34:38 +02:00
2026-04-24 13:20:25 -04:00
2026-05-16 13:55:42 -04:00
2026-02-15 22:51:03 +00:00
2026-05-30 06:55:16 -04:00
2025-12-07 15:13:31 -05:00
2025-08-14 09:34:38 +02:00
2025-08-14 09:34:38 +02:00
2026-04-27 06:30:11 -04:00
2025-08-14 09:34:38 +02:00
2025-08-14 09:34:38 +02:00
2026-06-02 18:30:20 +00:00
2025-08-14 09:34:38 +02:00
2026-05-19 05:09:23 -04:00
2025-08-14 09:34:38 +02:00
2026-04-27 06:30:11 -04:00
2025-08-14 09:34:38 +02:00
2024-05-31 15:01:13 +02:00
2026-05-11 11:00:03 +02:00
2025-08-14 09:34:38 +02:00
2025-08-14 09:34:38 +02:00
2025-08-14 09:34:38 +02:00
2026-02-27 07:32:08 +08:00
2025-09-29 07:02:01 -07:00
2026-06-10 13:46:34 +02:00
2026-05-16 05:15:05 -04:00
2026-05-22 08:07:55 +08:00
2026-04-30 11:13:47 +00:00
2026-02-08 09:47:02 -05:00
2025-08-14 09:34:38 +02:00
2025-08-14 09:34:38 +02:00
2025-08-14 09:34:38 +02:00
2025-08-14 09:34:38 +02:00
2025-08-14 09:34:38 +02:00
2026-04-21 07:22:54 +08:00
2025-08-14 09:34:38 +02:00
2025-12-02 07:24:28 +08:00
2025-08-14 09:34:38 +02:00
2026-06-08 22:19:25 +08:00
2026-01-01 01:48:49 -05:00
2025-08-14 09:34:38 +02:00
2026-06-08 22:37:43 +08:00
2026-03-23 19:36:48 +01:00
2026-05-19 05:09:23 -04:00
2025-08-14 09:34:38 +02:00
2026-02-08 09:47:02 -05:00
2025-08-14 09:34:38 +02:00
2026-06-08 22:19:25 +08:00
2025-08-14 09:34:38 +02:00
2026-05-31 23:15:39 +02:00
2025-08-14 09:34:38 +02:00
2026-05-29 02:25:34 +00:00
2025-08-14 09:34:38 +02:00
2026-05-24 18:02:03 +08:00
2026-05-07 10:47:51 -04:00
2026-06-02 11:12:11 +02:00
2025-10-26 06:20:33 +08:00
2026-06-10 01:18:26 +00:00
2026-05-19 19:42:58 +02:00
2025-08-14 09:34:38 +02:00
2026-05-18 17:44:26 +08:00
2026-06-03 10:20:28 -04:00
2025-08-14 09:34:38 +02:00
2026-05-16 05:15:05 -04:00
2026-06-01 01:04:30 +00:00
2026-05-19 19:42:58 +02:00
2025-01-07 09:15:10 +08:00
2026-04-20 02:31:09 +02:00
2025-08-14 09:34:38 +02:00
2026-03-20 08:44:01 +08:00
2026-06-08 20:53:10 +08:00
2025-08-14 09:34:38 +02:00
2026-04-14 18:39:38 +02:00
2025-08-14 09:34:38 +02:00
2024-01-11 21:37:23 +01:00
2026-02-16 09:35:53 -05:00
2025-08-14 09:34:38 +02:00
2026-05-02 10:51:44 +08:00
2026-03-11 18:00:18 +01:00
2026-05-21 09:35:27 +08:00
2025-08-14 09:34:38 +02:00
2026-05-30 10:02:16 -04:00
2025-08-14 09:34:38 +02:00
2026-05-11 11:00:03 +02:00
2026-06-08 05:27:20 +00:00
2025-08-14 09:34:38 +02:00
2025-08-27 10:17:12 +08:00
2026-02-22 07:02:47 +08:00
2024-11-16 09:55:41 +08:00
2026-05-13 06:57:07 +08:00
2025-08-14 09:34:38 +02:00
2024-01-11 21:37:23 +01:00
2026-03-28 15:25:09 -04:00
2025-04-28 10:10:11 +02:00
2026-05-30 06:55:16 -04:00
2025-10-10 07:14:50 -07:00
2025-08-31 05:29:43 +00:00
2025-08-14 09:34:38 +02:00
2026-04-30 19:19:42 +02:00
2025-08-14 09:34:38 +02:00
2026-04-20 05:12:52 -04:00
2026-05-13 15:54:34 -04:00
2025-08-14 09:34:38 +02:00
2026-05-11 13:31:10 +02:00
2025-10-10 07:14:50 -07:00
2026-06-10 07:37:08 +08:00
2025-08-14 09:34:38 +02:00
2026-05-06 12:25:25 -04:00
2025-08-14 09:34:38 +02:00
2025-10-14 08:46:54 +08:00
2025-08-14 09:34:38 +02:00
2026-05-06 12:25:25 -04:00
2025-08-14 09:34:38 +02:00
2026-04-12 14:17:50 +02:00
2025-08-14 09:34:38 +02:00
2025-03-08 05:45:39 +08:00
2026-05-11 13:31:10 +02:00
2025-08-14 09:34:38 +02:00
2026-04-22 08:12:55 +08:00
2026-04-22 08:12:55 +08:00
2026-05-19 19:42:58 +02:00
2026-06-04 14:35:41 +02:00
2025-08-14 09:34:38 +02:00
2026-05-18 11:25:03 -04:00
2024-01-11 21:37:23 +01:00
2026-02-27 11:47:07 +01:00
2026-05-18 11:25:03 -04:00
2024-07-30 07:35:25 +08:00
2026-04-24 14:10:28 -04:00
2025-08-14 09:34:38 +02:00
2026-03-17 21:52:25 +08:00
2026-04-20 08:14:11 +00:00
2025-08-14 09:34:38 +02:00
2026-03-03 11:23:20 +01:00
2026-05-11 13:31:10 +02:00
2025-08-14 09:34:38 +02:00
2026-04-20 08:14:11 +00:00
2025-08-14 09:34:38 +02:00
2026-04-14 18:39:38 +02:00
2026-05-17 10:24:46 -04:00
2025-01-13 13:16:41 +01:00
2025-09-22 07:30:00 +08:00
2025-08-14 09:34:38 +02:00
2024-08-08 08:11:53 +00:00
2026-04-20 07:09:37 -04:00
2025-08-14 09:34:38 +02:00
2025-12-25 15:38:45 +08:00
2026-05-21 09:35:27 +08:00
2025-08-20 21:45:49 -04:00
2024-06-11 11:11:38 +02:00
2026-04-14 18:39:38 +02:00
2025-08-14 09:34:38 +02:00
2026-04-20 08:14:11 +00:00
2025-08-14 09:34:38 +02:00
2026-03-27 06:24:14 -04:00
2026-05-20 03:48:55 -04:00
2026-05-12 16:28:54 -04:00
2026-06-08 20:53:10 +08:00
2025-08-14 09:34:38 +02:00
2026-06-04 06:21:59 +02:00
2025-08-14 09:34:38 +02:00
2026-05-19 05:08:23 -04:00
2026-05-19 05:08:23 -04:00
2025-08-14 09:34:38 +02:00
2026-05-19 05:08:23 -04:00
2025-09-26 00:29:40 -04:00
2026-05-17 10:24:46 -04:00
2026-05-02 12:55:14 +08:00
2026-05-19 05:09:23 -04:00
2025-08-14 09:34:38 +02:00
2026-06-08 16:12:14 -04:00
2026-05-19 19:42:58 +02:00
2025-08-14 09:34:38 +02:00
2026-06-10 07:46:55 -04:00
2026-05-02 10:51:44 +08:00
2026-04-20 09:30:30 +08:00
2026-04-04 08:58:17 +08:00
2026-05-04 11:47:54 +08:00
2025-10-10 07:14:50 -07:00
2026-05-02 10:51:44 +08:00
2025-08-14 09:34:38 +02:00
2026-06-04 05:51:22 +00:00
2025-08-14 09:34:38 +02:00
2025-11-16 20:36:07 -08:00
2026-04-23 05:41:43 +00:00
2025-08-14 09:34:38 +02:00
2025-09-26 00:29:40 -04:00
2026-05-13 06:57:07 +08:00
2026-05-13 06:57:07 +08:00
2025-02-25 23:40:21 +00:00
2026-05-20 08:13:41 -04:00
2025-12-28 14:26:29 +08:00
2026-05-06 01:45:18 +00:00
2026-05-06 01:45:18 +00:00
2025-08-14 09:34:38 +02:00
2025-08-14 09:34:38 +02:00
2026-05-21 09:35:27 +08:00
2025-08-14 09:34:38 +02:00
2024-07-07 07:21:14 +08:00
2026-04-20 08:14:11 +00:00
2025-08-14 09:34:38 +02:00
2026-05-23 00:51:47 +00:00
2026-04-28 07:00:23 +08:00
2025-08-14 09:34:38 +02:00
2026-06-02 11:12:11 +02:00
2025-08-14 09:34:38 +02:00
2026-04-30 19:19:42 +02:00
2025-08-14 09:34:38 +02:00
2025-06-09 18:57:28 +02:00
2026-05-23 23:59:08 +00:00
2025-08-14 09:34:38 +02:00
2026-02-15 12:16:51 -05:00
2026-05-31 23:15:39 +02:00
2025-09-13 13:34:58 -07:00
2026-04-30 11:43:04 -04:00
2025-08-14 09:34:38 +02:00
2024-01-11 21:37:23 +01:00
2026-04-24 13:20:25 -04:00
2025-08-14 09:34:38 +02:00
2026-04-30 19:19:42 +02:00
2025-08-14 09:34:38 +02:00
2026-05-20 03:48:55 -04:00
2026-03-19 18:16:57 +08:00
2026-02-22 07:02:47 +08:00
2025-08-14 09:34:38 +02:00
2026-03-08 23:58:14 +00:00
2025-08-14 09:34:38 +02:00
2026-05-19 05:08:23 -04:00
2025-08-14 09:34:38 +02:00
2026-04-18 16:57:37 +02:00
2026-05-13 10:25:43 +08:00
2025-08-14 09:34:38 +02:00
2026-04-12 07:44:35 -04:00
2025-08-14 09:34:38 +02:00
2025-09-13 22:49:50 -04:00
2026-05-19 11:45:56 +02:00
2025-08-14 09:34:38 +02:00
2024-01-11 21:37:23 +01:00
2026-05-10 08:06:07 +08:00
2025-08-14 09:34:38 +02:00
2026-06-02 11:12:11 +02:00
2026-05-06 06:36:39 -04:00
2026-06-03 05:45:43 -04:00
2025-12-01 02:34:51 -05:00
2025-11-19 20:43:15 -08:00
2026-05-07 16:00:26 +00:00
2026-05-31 01:21:03 +00:00
2026-01-17 10:58:26 +08:00
2026-04-19 20:36:55 -04:00
2025-08-14 09:34:38 +02:00