reSWIGged
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32709 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
061d64dd01
commit
8845e31e26
@ -11216,7 +11216,10 @@ if RELEASE_VERSION != _core_.RELEASE_VERSION:
|
|||||||
# http://www.alanwood.net/demos/charsetdiffs.html for differences
|
# http://www.alanwood.net/demos/charsetdiffs.html for differences
|
||||||
# between the common latin/roman encodings.
|
# between the common latin/roman encodings.
|
||||||
import locale
|
import locale
|
||||||
default = locale.getdefaultlocale()[1]
|
try:
|
||||||
|
default = locale.getdefaultlocale()[1]
|
||||||
|
except ValueError:
|
||||||
|
default = "iso8859-1"
|
||||||
if default:
|
if default:
|
||||||
wx.SetDefaultPyEncoding(default)
|
wx.SetDefaultPyEncoding(default)
|
||||||
del default
|
del default
|
||||||
|
@ -11229,7 +11229,10 @@ if RELEASE_VERSION != _core_.RELEASE_VERSION:
|
|||||||
# http://www.alanwood.net/demos/charsetdiffs.html for differences
|
# http://www.alanwood.net/demos/charsetdiffs.html for differences
|
||||||
# between the common latin/roman encodings.
|
# between the common latin/roman encodings.
|
||||||
import locale
|
import locale
|
||||||
default = locale.getdefaultlocale()[1]
|
try:
|
||||||
|
default = locale.getdefaultlocale()[1]
|
||||||
|
except ValueError:
|
||||||
|
default = "iso8859-1"
|
||||||
if default:
|
if default:
|
||||||
wx.SetDefaultPyEncoding(default)
|
wx.SetDefaultPyEncoding(default)
|
||||||
del default
|
del default
|
||||||
|
Loading…
Reference in New Issue
Block a user