-
Notifications
You must be signed in to change notification settings - Fork 37
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Accentuation in project path is not supported (Windows) #60
Comments
Hi @andrenasturas , This is a limitation on Mercurial itself. From https://www.mercurial-scm.org/wiki/EncodingStrategy:
I just installed Mercurial on my Windows in Portuguese, and it shows:
You can see there are a bunch of weird characters in the text There is probably some place in the extension's code we are trying to do some encoding, and is getting things wrong. |
Fix #60: Use proper encoding on Windows
The plug-in is unable to work correctly if the current folder opened in vscode is located in a folder containing accentuation.
I work on a computer where usernames are the exact real names of users. Mine have an French accent the issue appears for any repo cloned inside my Windows home directory. It works well in other accentuation-free places.
When I hit the Refresh button, I get this message :
Hg: spawn C:\Program Files\TortoiseHg\hg.exe ENOENT
When I try to pull the repo, I get this message :
Your repository has no paths configured to pull from.
When I hit the button "Open hgrc file" in the error message popup, I get this new message :Hg: ENOENT: no such file or directory, open 'c:\...\...� ...\...\.hg\hgrc'
.When I saw the � character instead of the expected
é
, I understood the issue was related to accentuation.I don't know if it is specific to this plug-in or if it concerns vscode itself, but I don't remember ever having trouble with git repos.
I was also unable to reproduce on a Ubuntu-based system.
The text was updated successfully, but these errors were encountered: