Can't add any non-ascii files on mercurial for Windows?
Nathan Davis
davisnw at yahoo.com
Tue Sep 25 02:09:57 UTC 2012
Thanks for your reply.
My default Codepage is 437 (HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Nls\CodePage\OEMCP), but I also (on the command line via chcp) experimented with a few other code pages (50227, 50229, 65001) which didn't change the behavior any.
So, it sounds like, at least for now, I am out of luck.
On the other hand I saw a link that
http://mercurial.markmail.org/search/?q=fro%3A%22FUJIWARA+Katsunori%22+list%3Acom.selenic.mercurial-devel+vfs is working on supporting utf8 filenames for Windows, and the links you provided
seem to indicate that mercurial is planning on fully incorporating this
in the future.
I know no one can give a date for when support will be released, but is
there some indication of where in the process the Windows UTF8 plan is in
implementation (e.g. just a proposal, significant
coding done, testing, or some such)?
________________________________
From: Matt Mackall <mpm at selenic.com>
To: Nathan Davis <davisnw at yahoo.com>
Cc: "mercurial at selenic.com" <mercurial at selenic.com>
Sent: Monday, September 24, 2012 11:25 AM
Subject: Re: Can't add any non-ascii files on mercurial for Windows?
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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mercurial-scm.org/pipermail/mercurial/attachments/20120924/814120cc/attachment-0002.html>
More information about the Mercurial
mailing list