t.i._pollingfile silently accepts unicode for writing
| Newsgroups | gmane.comp.python.twisted.bugs |
|---|---|
| Message-ID | <[email protected]> |
New submission from dotz <[email protected]>: Hi, this little bug took me about 3 hours to track. I use tx ampoule https://launchpad.net/ampoule on win32 (Vista). Some AMP commands were passed correctly over ampoule; some were not and it looked like every single byte was separated by a NULL byte... As it came out, unicode string was passed to t.i._pollingfile write function and the AMP command sent by ampoule and Twisted amp was received mangled. I propose we disallow writing unicode objects. If user wants to write unicode, he/she will have to convert it to utf-8 string before. ---------- Type : enhancement Component: core Keywords : Priority : normal Nosy : ---------- http://twistedmatrix.com/trac/ticket/3930