-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Stephen J. Turnbull wrote:
> You just can't get away from the need for explicit management of > codecs if you want a robust internationalized application. I don't > object to giving users an easy way to get the behavior Michael > proposes; it just should not be the *default*. Using any guessing based on the locale (which describes the codec used byt the user's console, but is completely uncorrelated to any particular file on the user's filesystem) is just about guaranteed to fail for lots of users. Any guessing at all should have to enabled by the application: the library doesn't have enough information to make a non[-data-mangling guess in some of those cases. Opening a file is one of those places where people need to think about the bytes vs. text problem: we can't make that go away by playing whack-a-mole with the edge cases. Tres. - -- =================================================================== Tres Seaver +1 540-429-0999 tsea...@palladion.com Palladion Software "Excellence by Design" http://palladion.com -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAktc3dkACgkQ+gerLs4ltQ65RQCaA2PmxR1CUajMnZTVo4dKzlXM k8QAn3jHz67QDf0RTWH/UrcTp7DRMTHP =fzTi -----END PGP SIGNATURE----- _______________________________________________ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com