[PATCH] hgext/win32chcp: switches the console into an encoding actually used (issue2926)

Andrei Polushin polushin at gmail.com
Sat Jul 30 18:50:29 CDT 2011


30.07.2011 5:23, Matt Mackall wrote:
> On Sat, 2011-07-30 at 04:52 +0700, Andrei Polushin wrote:
>> But the console codepage still needs to be restored somehow. It should be
>> restored when `more' terminates, because `hg' terminates too early, while
>> `more' is still running.
> 
> Hmmm, that's tricky.

OK, I'll stop sending patches from now.

I've established a project at http://code.google.com/p/win32chcp/ where
anybody can download and use it in its current form.

My current approach is to avoid restoring console encoding in case when the
output is redirected somehow (see project home for examples).

-- 
Andrei Polushin


More information about the Mercurial-devel mailing list