mirror of
https://github.com/wxWidgets/Phoenix.git
synced 2026-01-06 03:50:06 +01:00
Fixed issue when sys.prefix is not unicode (Python2) and when its contents are not translatable to utf-8.
This commit is contained in:
@@ -37,6 +37,9 @@ Changes in this release include the following:
|
|||||||
passing it to a window constructor, and can also be used as the source in a
|
passing it to a window constructor, and can also be used as the source in a
|
||||||
Bind().
|
Bind().
|
||||||
|
|
||||||
|
* Fixed issue when sys.prefix is not unicode (Python2) and when its contents
|
||||||
|
are not translatable to utf-8.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
4.0.2 "Cute as a June bug!"
|
4.0.2 "Cute as a June bug!"
|
||||||
|
|||||||
@@ -430,7 +430,10 @@ def run():
|
|||||||
self.RedirectStdio(filename)
|
self.RedirectStdio(filename)
|
||||||
|
|
||||||
# Use Python's install prefix as the default
|
# Use Python's install prefix as the default
|
||||||
wx.StandardPaths.Get().SetInstallPrefix(_sys.prefix)
|
prefix = _sys.prefix
|
||||||
|
if isinstance(prefix, (bytes, bytearray)):
|
||||||
|
prefix = prefix.decode(_sys.getfilesystemencoding())
|
||||||
|
wx.StandardPaths.Get().SetInstallPrefix(prefix)
|
||||||
|
|
||||||
# Until the new native control for wxMac is up to par, still use the generic one.
|
# Until the new native control for wxMac is up to par, still use the generic one.
|
||||||
wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1)
|
wx.SystemOptions.SetOption("mac.listctrl.always_use_generic", 1)
|
||||||
|
|||||||
Reference in New Issue
Block a user