homepage

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 eryksun
Recipients eryksun, lac, paul.moore, r.david.murray, steve.dower, tim.golden, vstinner, zach.ware
Date 2015年11月09日.21:15:08
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1447103708.5.0.277442056769.issue25585@psf.upfronthosting.co.za>
In-reply-to
Content
Steve, do you think it's OK to abandon localization for exception messages? If so, should we be using English for all FormatMessage calls? It's a bit ugly that Python's exceptions and the CRT error messages are in English, but then whenever we call FormatMessage with LANG_NEUTRAL/SUBLANG_DEFAULT we're getting localized error text. For example, the import error in the following case has a mix or Russian and English:
 import io, sys, ctypes
 kernel32 = ctypes.WinDLL('kernel32')
 MUI_LANGUAGE_NAME = 8
 kernel32.SetThreadPreferredUILanguages(MUI_LANGUAGE_NAME, u'ru-RU0円', None)
 kernel32.SetConsoleOutputCP(1251)
 sys.stderr = io.TextIOWrapper(open(r'\\.\con', 'wb'), encoding='1251')
 open('blah.pyd', 'w').close()
 >>> import blah
 Traceback (most recent call last):
 File "<stdin>", line 1, in <module>
 ImportError: DLL load failed: %1 не является приложением Win32.
History
Date User Action Args
2015年11月09日 21:15:08eryksunsetrecipients: + eryksun, paul.moore, vstinner, tim.golden, r.david.murray, zach.ware, steve.dower, lac
2015年11月09日 21:15:08eryksunsetmessageid: <1447103708.5.0.277442056769.issue25585@psf.upfronthosting.co.za>
2015年11月09日 21:15:08eryksunlinkissue25585 messages
2015年11月09日 21:15:08eryksuncreate

AltStyle によって変換されたページ (->オリジナル) /