[PATCH 2 of 2] osutil.c added proper support for unicode

Adrian Buehlmann adrian at cadifra.com
Thu Sep 4 17:12:45 CDT 2008


[cc-ing to list]

On 04.09.2008 21:34, Petr Kodl wrote:
> os.listdir in python behaves the same way  (see documentation)
> if regular string is passed results are regular string and standard
> _MAX_PATH limitation applies
> for unicode string results are unicode strings and the path length is
> virtually unlimited

I'm aware of that behaviour of os.listdir. I have done experimental patches exploring
that. See the archive of this list (search for longpath).

> so no change in behavior vs what's already in standard python library

ok. Good to know. Mercurial currently doesn't call os.listdir with
unicode parameter strings because it can't handle them if they are returned.

This has been discussed in other threads on this list here and on the mercurial
list.



More information about the Mercurial-devel mailing list