[issue2660] 2to3 throws a utf8 decode error on a iso-8859-1 string

2008-04-19 Thread Collin Winter
Collin Winter <[EMAIL PROTECTED]> added the comment: 2to3 running under Python 2.5.1 handles this file just fine. 2to3 running under 3.0a4+ (r62404) fails as detailed below. However, that file doesn't run correctly under Python itself: [EMAIL PROTECTED]:~/src/python/py3k$ ./python /home/collinwi

[issue2660] 2to3 throws a utf8 decode error on a iso-8859-1 string

2008-04-19 Thread Brandon Ehle
New submission from Brandon Ehle <[EMAIL PROTECTED]>: While running the 2to3 script on the scons codebase, I ran into an UnicodeDecodeError. Attached is just the portion of the script that causes the error. 2to3 throws an error on the string regardless of whether the unicode string literal is p