Author giovannibajo
Recipients christian.heimes, giovannibajo
Date 2008-02-17.18:57:59
SpamBayes Score 0.000815195
Marked as misclassified No
Message-id <>
I'm attaching a simple patch that seems to work under Py3k. The trick is
that Py3k already attempts (not sure how or why) to decode argv using
utf-8. So it's sufficient to setup argv as UTF8-encoded strings.

Notice that brings the output of "python ààààà" from this:

Fatal Python error: no mem for sys.argv
UnicodeDecodeError: 'utf8' codec can't decode bytes in position 0-2:
invalid data

to this:

TypeError: zipimporter() argument 1 must be string without null bytes,
not str

which is expected since zipimporter_init() doesn't even know to ignore
unicode strings (let alone handle them correctly...).
Date User Action Args
2008-02-17 18:58:01giovannibajosetspambayes_score: 0.000815195 -> 0.000815195
recipients: + giovannibajo, christian.heimes
2008-02-17 18:58:01giovannibajosetspambayes_score: 0.000815195 -> 0.000815195
messageid: <>
2008-02-17 18:58:00giovannibajolinkissue2128 messages
2008-02-17 18:58:00giovannibajocreate