On Apr 7, 2005, at 5:07 AM, M.-A. Lemburg wrote:
The current implementation of the utf-16 codecs makes for some irritating gymnastics to write the BOM into the file before reading it if it contains no BOM, which seems quite like a bug in the codec.
The codec writes a BOM in the first call to .write() - it doesn't write a BOM before reading from the file.
Yes, see, I read a *lot* of UTF-16 that comes from other sources. It's not a matter of writing with python and reading with python.
-- Nick
_______________________________________________ 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