You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Special characters in filenames are not properly encoded #110
describe("handle special characters in filenames", function () {
it("should correctly parse a filename with special characters", function () {
const expected: FileChange = {
x: "A",
y: " ",
from: "abcëxyz.md",
to: "",
};
assert.deepStrictEqual(parseDiffIndex("A\tabcëxyz.md"), expected);
});
});
Can you do this in your repo or globally across repos with --global?
git config core.quotePath false
Then try again and let me know if that works?
I started implementing a fix in the code but it touched a couple of files and then at some point the sandbox won't start beacuse of some error in vs code so I am stuck for now
@MichaelCurrin With core.quotePath false it behaves as expected.
If you call git within your code, you might simply want to add the matching config parameter using -c like in the following example:
Activity
MichaelCurrin commentedon Aug 19, 2024
hmm thanks. I was able to reproduce
but when I added unit tests, they pass.
e.g.
MichaelCurrin commentedon Aug 19, 2024
The problem is the git commands. I'll keep looking at this
MichaelCurrin commentedon Aug 19, 2024
Can you do this in your repo or globally across repos with
--global?Then try again and let me know if that works?
I started implementing a fix in the code but it touched a couple of files and then at some point the sandbox won't start beacuse of some error in vs code so I am stuck for now
Wikiwix commentedon Aug 19, 2024
@MichaelCurrin With
core.quotePath falseit behaves as expected.If you call
gitwithin your code, you might simply want to add the matching config parameter using-clike in the following example:git -c 'core.quotePath=false' ls-filesMichaelCurrin commentedon Aug 20, 2024
from my quick testing it looks like that works.
MichaelCurrin commentedon Aug 20, 2024
I've pushed the change on master if you want to build and install locally
git clone ...
make all
make e
I am not going to publish the change yet as a new version of the extension
MichaelCurrin commentedon Nov 3, 2024
Hi, I've published a new version
Wikiwix commentedon Nov 3, 2024
Nice, but for me the new version throws this error (on Windows)
Running the command from the error message works as expected in Powershell…
Wikiwix commentedon Nov 3, 2024
In CMD I can recreate the error:
Using double quotes or no quotes at all works though
EDIT: Single Quotes in CMD are just regular characters, so it is expected to not work in cmd
Wikiwix commentedon Nov 3, 2024
@MichaelCurrin I prepared #114 with a fix
And by now I am sorry that I did not build the earlier version myself and test it. Then the (on Windows) broken release could have been prevented :/