get the default encoding from the default locale.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31023 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
27c9e43cc0
commit
4293f84787
@ -32,6 +32,16 @@ if RELEASE_VERSION != _core_.RELEASE_VERSION:
|
|||||||
|
|
||||||
#----------------------------------------------------------------------------
|
#----------------------------------------------------------------------------
|
||||||
|
|
||||||
|
# Set the default string conversion encoding from the locale
|
||||||
|
import locale
|
||||||
|
default = locale.getdefaultlocale()[1]
|
||||||
|
if default:
|
||||||
|
wx.SetDefaultPyEncoding(default)
|
||||||
|
del default
|
||||||
|
del locale
|
||||||
|
|
||||||
|
#----------------------------------------------------------------------------
|
||||||
|
|
||||||
class PyDeadObjectError(AttributeError):
|
class PyDeadObjectError(AttributeError):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user