Bazaar-NG traffic #2

Aaron Bentley aaron.bentley at utoronto.ca
Tue Oct 11 17:02:37 BST 2005


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Magnus Therning wrote:
>  Note 2: os.listdir(u"path") returns Unicode strings for names that can
>  be decoded with sys.getfilesystemencoding() but silently returns byte
>  strings for names that can't be decoded. That is, the return value of
>  os.listdir(u"path") is potentially a mixed list of Unicode and byte
>  strings.

I think we need to insist that any versioned files have unicode
filenames.  Considering that a bytestring filename for one user may be a
unicode filename for another, I think we could have really ugly
corner-case behaviour if we tried to support bytestring filenames.

It may be that we can tolerate non-unicode unversioned files, since by
definition, these are not shared.

Aaron
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFDS+Id0F+nu1YWqI0RAnuHAJ4mITgfZi0rlEhCY6pytJKBS8NYzwCeK90A
QE4xHPgTHnHHF1L0sHFRgPo=
=E4RX
-----END PGP SIGNATURE-----




More information about the bazaar mailing list