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

Nathan Davis davisnw at yahoo.com
Wed Sep 26 02:09:02 UTC 2012


10646 seems to be an invalid code page (at least chcp doesn't recognize it)


Also, I tried changing 
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Nls\CodePage\ACP 
from its current value of 1252 to 65001.  Doing so made the system 
unable to boot.

You said that cp65001, can be mostly made to work, but I have not had success with it.  Can you elaborate?


________________________________
 From: Matt Mackall <mpm at selenic.com>
To: Tony Mechelynck <antoine.mechelynck at gmail.com> 
Cc: Nathan Davis <davisnw at yahoo.com>; "mercurial at selenic.com" <mercurial at selenic.com> 
Sent: Tuesday, September 25, 2012 10:19 AM
Subject: Re: Can't add any non-ascii files on mercurial for Windows?
 
On Tue, 2012-09-25 at 16:11 +0200, Tony Mechelynck wrote:
> On 25/09/12 04:09, Nathan Davis wrote:
> > 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.
> [...]
> 
> Try 10646. IIRC that's the Windows codepage for Unicode (not sure if 
> it's UTF-8 or UTF-16le, and the name comes from ISO/IEC 10646 which is 
> also Unicode, but from the ISO point of view).

That'd be cp65001, which can be mostly made to work.

Also note that Mercurial ignores the _OEM_ code page (typically used by
console apps) and only looks at the _ANSI_ code page (typically used by
GUI apps and filesystem APIs).

-- 
Mathematics is the supreme nostalgia of our time.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mercurial-scm.org/pipermail/mercurial/attachments/20120925/07d6d554/attachment-0002.html>


More information about the Mercurial mailing list