[PATCH] py3: handle os.environ case

Yuya Nishihara yuya at tcha.org
Wed Sep 28 12:09:25 EDT 2016


On Wed, 28 Sep 2016 21:16:09 +0530, Pulkit Goyal wrote:
> > I tried to implement this TODO. We need encoding.tolocal() to build a bytes
> > dict from unicode os.environ without losing round-trip utf-8 data, but
> > pycompat.py shouldn't import mercurial.* modules. So I'm thinking of adding
> > encoding.environ instead of pycompat.environ.
> >
> > We'll also need to fix a couple of str/unicode issues in encoding.py to
> > make that actually work.
> 
> Okay I will work in this direction and come up with a patch.

I have working patches which aren't ready to patchbomb. I think I can send
some of them tomorrow.


More information about the Mercurial-devel mailing list