Can't add any non-ascii files on mercurial for Windows?
Matt Mackall
mpm at selenic.com
Mon Sep 24 17:25:18 UTC 2012
On Sun, 2012-09-23 at 15:30 -0700, Nathan Davis wrote:
> 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".
What ANSI codepage is your system running in? For now, if it doesn't
support Chinese characters (ie cp936 or cp950), you can't check in such
files because they're invisible to the ANSI C filesystem APIs.
See:
http://mercurial.selenic.com/wiki/EncodingStrategy
http://mercurial.selenic.com/wiki/WindowsUTF8Plan
--
Mathematics is the supreme nostalgia of our time.
More information about the Mercurial
mailing list