8

First off, I am aware of Mercurial: Problem with non-ascii letters in filenames between Windows and Linux and What DVCS support Unicode filenames?. But they are old, and do not apply to the latest versions of mercurial.

They both mention the FixUtf8 extension - which does not work with the latest version of mercurial (2.3.1 as of this writing) and apparently has not worked since mercurial 2.0. In fact enabling that extension will prevent you from adding any files at all, even plain "vanilla" ascii filenames. The FixUtf8Extension appears to have been abandoned - it's last commit was in 2010.

I have been a happy mercurial user up until now, but I am now on an international project where support for non-ascii filenames is critical. I will have to look at alternate version control systems if this can't be addressed in mercurial.

Is there any support for unicode filenames at all with the latest versions of mercurial on Windows?

1 Answer 1

6

No, Mercurial still doesn't support transcoding of filenames. That is, it will checkin and checkout filenames as binary strings and you will experience problems if you need to move files between systems with incompatible filename encodings.

If everybody in your team is using Windows with the same code page, then you can use non-ASCII characters just fine. They'll be stored inside the repository in whatever code page you use, but everybody will be able to use the files.

If you need to move files between platforms, then stick to ASCII filenames for now.

There is a Windows UTF-8 plan in the works, and FUJIWARA Katsunori has been working on it, but it's not yet (September 2012) ready.

3
  • 5
    You say that if everybody is using Windows I should be able to use non-ascii characters just fine. However, I cannot even add a file with (for example) Chinese characters in a filename to a local repository. From tortoisHg, it shows up as all ? characters, and attempting to add it results in "[Error 123] The filename, directory name, or volume label syntax is incorrect: 'C:\\projects\\utf8test\\???.txt'". And from the command line if i runhg add *.txt, I get "???.txt: The filename, directory name, or volume label syntax is incorrect". So even everybody on Windows does not seem viable?
    – Nathan
    Sep 23, 2012 at 4:23
  • 1
    Oh, that's news to me. Please take this to the Mercurial mailinglist. That is the right forum for this since you can discuss with other users there. Sep 23, 2012 at 7:02
  • 2
    Here is a link to the ensuing thread on the Mercurial mailinglist mercurial.808500.n3.nabble.com/… Feb 12, 2013 at 10:29

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.