Commit 0cd7681
committed
Fix %-encoding in UriToFilePath
In #1119 a change was made to "unquote" the URI before converting to a
file path, ostensibly to support windows. It seems that either that
change was broken, or that Python standard library has since been fixed
and this has caused legitimate %-encoded paths (like foo#bar/test.c) to
now truncate at the #.
The tests added for UriToFilePath with Windows paths still pass
unchanged without the hack on Python 3.14 so I'm happy to just remove
the hack.1 parent bd0d133 commit 0cd7681
2 files changed
Lines changed: 4 additions & 3 deletions
File tree
- ycmd
- completers/language_server
- tests/language_server
Lines changed: 2 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | | - | |
| 22 | + | |
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| |||
767 | 767 | | |
768 | 768 | | |
769 | 769 | | |
770 | | - | |
771 | | - | |
| 770 | + | |
772 | 771 | | |
773 | 772 | | |
774 | 773 | | |
| |||
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
153 | 153 | | |
154 | 154 | | |
155 | 155 | | |
| 156 | + | |
| 157 | + | |
156 | 158 | | |
157 | 159 | | |
158 | 160 | | |
| |||
0 commit comments