[issue5640] Wrong print() result when unicode error handler is not 'strict'

2010-05-21 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: Hyeshik Chang commited the fix one year ago in py3k (r71045). I ported the fix to trunk (r81454) and 2.6 (r81456). -- nosy: +haypo resolution: - fixed status: open - closed ___ Python

[issue5640] Wrong print() result when unicode error handler is not 'strict'

2010-01-08 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- versions: +Python 3.2 -Python 3.0 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5640 ___ ___

[issue5640] Wrong print() result when unicode error handler is not 'strict'

2009-11-17 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- priority: - normal stage: needs patch - patch review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5640 ___

[issue5640] Wrong print() result when unicode error handler is not 'strict'

2009-04-03 Thread Walter Dörwald
Walter Dörwald wal...@livinglogic.de added the comment: Indeed this patch does fix the bug. Go ahead and check it in. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5640 ___

[issue5640] Wrong print() result when unicode error handler is not 'strict'

2009-04-02 Thread Hye-Shik Chang
Hye-Shik Chang hyes...@gmail.com added the comment: Right. Here I upload a patch to fix the addressed problem on cjkcodecs. Please test whether the patch corrects the behavior. -- keywords: +patch Added file: http://bugs.python.org/file13572/cjkcodecs-fix-statefulenc.diff

[issue5640] Wrong print() result when unicode error handler is not 'strict'

2009-04-02 Thread Hye-Shik Chang
Hye-Shik Chang hyes...@gmail.com added the comment: Sorry. I just found that the fix breaks few other test units. I'll check. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5640 ___

[issue5640] Wrong print() result when unicode error handler is not 'strict'

2009-04-02 Thread Hyeshik Chang
Hyeshik Chang hyes...@gmail.com added the comment: Uploaded a revised patch that solved the newer problem. -- Added file: http://bugs.python.org/file13573/cjkcodecs-fix-statefulenc-2.diff ___ Python tracker rep...@bugs.python.org

[issue5640] Wrong print() result when unicode error handler is not 'strict'

2009-04-02 Thread Hyeshik Chang
Changes by Hyeshik Chang hyes...@gmail.com: Removed file: http://bugs.python.org/file13572/cjkcodecs-fix-statefulenc.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5640 ___

[issue5640] Wrong print() result when unicode error handler is not 'strict'

2009-04-02 Thread Atsuo Ishimoto
Atsuo Ishimoto ishim...@gembook.org added the comment: I tested with py3k branch and worked fine. Thank you. -- versions: +Python 2.6, Python 2.7 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5640

[issue5640] Wrong print() result when unicode error handler is not 'strict'

2009-04-01 Thread Atsuo Ishimoto
New submission from Atsuo Ishimoto ishim...@gembook.org: In Python 3(both 3.0.1 and SVN repo), if I set PYTHONIOENCODING=ShiftJIS:backslashreplace, print() outputs wrong result. print(\xff) \xff\xff Obviously, '\xff' should be printed instead of '\xff\xff'. Following is what io module does

[issue5640] Wrong print() result when unicode error handler is not 'strict'

2009-04-01 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +ezio.melotti ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5640 ___ ___ Python-bugs-list

[issue5640] Wrong print() result when unicode error handler is not 'strict'

2009-04-01 Thread Walter Dörwald
Walter Dörwald wal...@livinglogic.de added the comment: I can confirm this problem in the current version in the py3k branch. This seems to be a problem in the CJK codecs. Assigning to Hye Shik Chang. -- assignee: - hyeshik.chang nosy: +doerwalter, hyeshik.chang stage: - needs patch