Message78534
| Author | amaury.forgeotdarc |
|---|---|
| Recipients | amaury.forgeotdarc, brett.cannon |
| Date | 2008-12-30.14:37:17 |
| SpamBayes Score | 5.892611e-06 |
| Marked as misclassified | No |
| Message-id | <1230647839.23.0.204632416565.issue4626@psf.upfronthosting.co.za> |
| In-reply-to |
| Content | |
|---|---|
Issue4742 is similar issue: >>> source = b"# coding=cp1252\n\x94 = '\x94'".decode('cp1252') >>> compile(source, '<test>', 'exec') Traceback (most recent call last): File "<stdin>", line 1, in <module> File "<test>", line 0 SyntaxError: unknown encoding: cp1252 The real error here is masked; just before the exception is set, there is a pending SyntaxError: 'charmap' codec can't decode byte 0x9d in position 18: character maps to <undefined> It seems that the source internal representation is correct utf-8, but this is decoded again with the "coding=" cookie. |
|
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2008-12-30 14:37:19 | amaury.forgeotdarc | set | recipients: + amaury.forgeotdarc, brett.cannon |
| 2008-12-30 14:37:19 | amaury.forgeotdarc | set | messageid: <1230647839.23.0.204632416565.issue4626@psf.upfronthosting.co.za> |
| 2008-12-30 14:37:18 | amaury.forgeotdarc | link | issue4626 messages |
| 2008-12-30 14:37:17 | amaury.forgeotdarc | create | |