reSWIGged

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33031 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn
2005-03-24 17:42:48 +00:00
parent 7e24348eb8
commit 396fb5091d
16 changed files with 159 additions and 44 deletions

View File

@@ -11238,18 +11238,21 @@ if RELEASE_VERSION != _core_.RELEASE_VERSION:
# different on different platforms. For example, please see
# http://www.alanwood.net/demos/charsetdiffs.html for differences
# between the common latin/roman encodings.
import locale
import codecs
try:
default = locale.getdefaultlocale()[1]
codecs.lookup(default)
except (ValueError, LookupError):
default = _sys.getdefaultencoding()
default = _sys.getdefaultencoding()
if default == 'ascii':
import locale
import codecs
try:
default = locale.getdefaultlocale()[1]
codecs.lookup(default)
except (ValueError, LookupError):
default = _sys.getdefaultencoding()
del locale
del codecs
if default:
wx.SetDefaultPyEncoding(default)
del default
del locale
del codecs
#----------------------------------------------------------------------------