Can't add any non-ascii files on mercurial for Windows?

Nathan Davis davisnw at yahoo.com
Sun Sep 23 22:30:56 UTC 2012


Hi,

I posted the following question: http://stackoverflow.com/questions/12540247/unicode-filenames-on-windows-mercurial-2-5-or-future and was redirected to this mailing list.  The person who answered seemed to think that I should be able to add files with non-ascii filenames just fine on Windows, so long as I didn't need to be cross-platform.


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 run`hg add *.txt`, I get "???.txt: The filename, directory name, or volume label syntax is incorrect".

I am using TortoiseHg 2.5 / Mercurial 2.3.1 on Windows XP.  The test filename I used was "你好吗.txt" (that is unicode code points U+4F60 U+597D U+5417)

Does mercurial support non-ascii filenames on Windows at all, and if so, under what conditions?

Thanks in advance.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mercurial-scm.org/pipermail/mercurial/attachments/20120923/b5b0946f/attachment-0002.html>


More information about the Mercurial mailing list