[issue4282] profile doesn't support non-UTF8 source code

2010-03-21 Thread STINNER Victor
STINNER Victor added the comment: Fixed by r79271 (py3k), r79272 (3.1). -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___

[issue4282] profile doesn't support non-UTF8 source code

2009-03-21 Thread STINNER Victor
STINNER Victor added the comment: After some discussions, I think that my first patch (profile_encoding.patch) was correct but we also have to fix #4628. -- dependencies: +No universal newline support for compile() when using bytes ___ Python tracke

[issue4282] profile doesn't support non-UTF8 source code

2009-03-19 Thread STINNER Victor
STINNER Victor added the comment: This regression was introduced by the removal of execfile() in Python3. The proposed replacement of execfile() is wrong. I propose a generic fix in the issue #5524. -- ___ Python tracker

[issue4282] profile doesn't support non-UTF8 source code

2009-03-19 Thread STINNER Victor
STINNER Victor added the comment: Oops, benjamin noticed that it doesn't work with Windows end of line (\r\n). New patch reads the file encoding instead of reading file content as bytes. -- keywords: +patch Added file: http://bugs.python.org/file13379/profile_encoding-2.patch ___

[issue4282] profile doesn't support non-UTF8 source code

2009-03-19 Thread Brett Cannon
Changes by Brett Cannon : -- keywords: -patch stage: test needed -> patch review ___ Python tracker ___ ___ Python-bugs-list mailing l

[issue4282] profile doesn't support non-UTF8 source code

2009-03-19 Thread STINNER Victor
Changes by STINNER Victor : -- keywords: +needs review ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://ma

[issue4282] profile doesn't support non-UTF8 source code

2009-03-19 Thread STINNER Victor
STINNER Victor added the comment: Oops, i misread this issue (wrong title!). #4626 is related, but this issue is about the profile module. The problem is that profile open the source code as text (with the default charset: UTF-8). Attached patch fixes the problem. Example: --- x.py (ISO-8859