]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/src/_core_ex.py
Make the wx.MediaCtrl demo more functional, and add a sample movie.
[wxWidgets.git] / wxPython / src / _core_ex.py
index 004dc12019f305569586acd916f78918b565deb6..702e04f6eea88ab0dcbfd77fc00bc06efff0a3c0 100644 (file)
@@ -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):
     pass