Um, where does the filename object in that expression come from? It appears to be a PyString object. Who created it? That could should be changed to create a PyUnicode instead (using the filesystem encoding).
On 10/11/07, Christian Heimes <[EMAIL PROTECTED]> wrote: > Guido van Rossum wrote: > > Hm, can't we make co_filename a PyUnicode instance? > > I already did it in my patch but doesn't it cause a problem when the > encoding isn't UTF-8? I may understand > PyUnicode_FromString(PyString_AS_STRING(filename)) wrong. Doesn't it > decode filename from UTF-8? > > Christian > -- --Guido van Rossum (home page: http://www.python.org/~guido/) _______________________________________________ Python-3000 mailing list Python-3000@python.org http://mail.python.org/mailman/listinfo/python-3000 Unsubscribe: http://mail.python.org/mailman/options/python-3000/archive%40mail-archive.com