This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author loewis
Recipients amaury.forgeotdarc, christian.heimes, gvanrossum, loewis, r37c
Date 2008-01-07.21:00:17
SpamBayes Score 0.014859326
Marked as misclassified No
Message-id <1199739622.34.0.813507345446.issue1754@psf.upfronthosting.co.za>
In-reply-to
Content
I would claim that this is not a bug. Sure, the message doesn't come out
correctly, but only because you run it in a cmd.exe window, not in (say)
IDLE.

IIUC, the problem is that Python computes the message in CP_ACP (i.e.
the ANSI code page), whereas the terminal interprets it in CP_OEMCP
(i.e. the OEM code page).

If we declare that all strings are considered as CP_ACP in the
exception, then the only way to fix it would be to convert it from
CP_ACP to CP_OEMCP (or, more generally, sys.stderr.encoding) on
printing. Such conversion should be implemented in an unfailing way,
either using replacement characters or falling back to no conversion.

Forcing English messages would certainly reduce the problems, but it
still might be that the file name in the error message does not come out
correctly.
History
Date User Action Args
2008-01-07 21:00:22loewissetspambayes_score: 0.0148593 -> 0.014859326
recipients: + loewis, gvanrossum, amaury.forgeotdarc, christian.heimes, r37c
2008-01-07 21:00:22loewissetspambayes_score: 0.0148593 -> 0.0148593
messageid: <1199739622.34.0.813507345446.issue1754@psf.upfronthosting.co.za>
2008-01-07 21:00:18loewislinkissue1754 messages
2008-01-07 21:00:17loewiscreate