reSWIGged

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32709 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn 2005-03-10 00:45:31 +00:00
parent 061d64dd01
commit 8845e31e26
2 changed files with 8 additions and 2 deletions

View File

@ -11216,7 +11216,10 @@ if RELEASE_VERSION != _core_.RELEASE_VERSION:
# http://www.alanwood.net/demos/charsetdiffs.html for differences
# between the common latin/roman encodings.
import locale
default = locale.getdefaultlocale()[1]
try:
default = locale.getdefaultlocale()[1]
except ValueError:
default = "iso8859-1"
if default:
wx.SetDefaultPyEncoding(default)
del default

View File

@ -11229,7 +11229,10 @@ if RELEASE_VERSION != _core_.RELEASE_VERSION:
# http://www.alanwood.net/demos/charsetdiffs.html for differences
# between the common latin/roman encodings.
import locale
default = locale.getdefaultlocale()[1]
try:
default = locale.getdefaultlocale()[1]
except ValueError:
default = "iso8859-1"
if default:
wx.SetDefaultPyEncoding(default)
del default