>   > On Windows, my assumption was os.fsencode() == .encode("mbcs") if
>   > sys._enablelegacywindowsfsencoding(). So this looks good to me.
>   > Perhaps, the "ignore" error mode would match the legacy Windows behavior.
>   
>   Does this mean it could be a problem running from source on Windows?  For 
> example, `hg version` (as opposed to `hg.exe version`) seems to be equivalent 
> to `python hg`, which obviously doesn't have the proper environment variable 
> or C API option to enable legacy mode.  Should there be code early on that 
> detects this and warns/aborts?

It's hacked up by pycompat.py so `python hg` should be fine.
_______________________________________________
Mercurial-devel mailing list
Mercurial-devel@mercurial-scm.org
https://www.mercurial-scm.org/mailman/listinfo/mercurial-devel

Reply via email to