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 ash
Recipients ash, gward
Date 2008-05-20.15:42:23
SpamBayes Score 0.00093408785
Marked as misclassified No
Message-id <1211298148.33.0.388750856283.issue2931@psf.upfronthosting.co.za>
In-reply-to
Content
I've also attached a patch that fixes all these issues and also allows
the word "error" to be translated with gettext.

Regarding the use of `locale.getpreferredencoding` instead of
`sys.getdefaultencoding`. On my system (Windows XP, Russian) I get:

Python 2.5.1 (r251:54863, Apr 18 2007, 08:51:08) [MSC v.1310 32 bit
(Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import sys, locale
>>> sys.getdefaultencoding()
'ascii'
>>> locale.getpreferredencoding()
'cp1251'

Using cp1251 on my system makes much more sense. It's used as a default
encoding everywhere in the system. For example, in Notepad.
History
Date User Action Args
2008-05-20 15:42:29ashsetspambayes_score: 0.000934088 -> 0.00093408785
recipients: + ash, gward
2008-05-20 15:42:28ashsetspambayes_score: 0.000934088 -> 0.000934088
messageid: <1211298148.33.0.388750856283.issue2931@psf.upfronthosting.co.za>
2008-05-20 15:42:26ashlinkissue2931 messages
2008-05-20 15:42:25ashcreate