[Python-bugs-list] [Bug #114830] Writing of Unicode data not portable

noreply@sourceforge.net noreply@sourceforge.net
Tue, 19 Sep 2000 13:59:54 -0700


Bug #114830, was updated on 2000-Sep-19 13:46
Here is a current snapshot of the bug.

Project: Python
Category: Core
Status: Open
Resolution: None
Bug Group: None
Priority: 7
Summary: Writing of Unicode data not portable

Details: In 2.0b1, writing a Unicode object to a socket has an outcome that depends on the endianness of the processor. This is highly undesirable,
and not documented either in the reference manuals. It also break backwards compatibility in hard-to-analyse ways, as the other end of the socket may react strangely when confronted with Python's internal representation of a Unicode object.

Since determination of an encoding must be an application decision, it seems best if attempts to write Unicode objects to sockets produce an exception. To some degree, the same criticism applies to binary files.

For detailed info, follow this link:
http://sourceforge.net/bugs/?func=detailbug&bug_id=114830&group_id=5470