X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/aff4cc5c90247c47512920644a072aad1424f712..c9caa6bbe94bbbe9cf4a97d0804fcbe370a389f0:/wxPython/src/mac/_core.py diff --git a/wxPython/src/mac/_core.py b/wxPython/src/mac/_core.py index 6e21d72a20..8daf2864db 100644 --- a/wxPython/src/mac/_core.py +++ b/wxPython/src/mac/_core.py @@ -91,11 +91,6 @@ POPUP_WINDOW = _core_.POPUP_WINDOW CENTER_FRAME = _core_.CENTER_FRAME CENTRE_ON_SCREEN = _core_.CENTRE_ON_SCREEN CENTER_ON_SCREEN = _core_.CENTER_ON_SCREEN -ED_CLIENT_MARGIN = _core_.ED_CLIENT_MARGIN -ED_BUTTONS_BOTTOM = _core_.ED_BUTTONS_BOTTOM -ED_BUTTONS_RIGHT = _core_.ED_BUTTONS_RIGHT -ED_STATIC_LINE = _core_.ED_STATIC_LINE -EXT_DIALOG_STYLE = _core_.EXT_DIALOG_STYLE CLIP_CHILDREN = _core_.CLIP_CHILDREN CLIP_SIBLINGS = _core_.CLIP_SIBLINGS ALWAYS_SHOW_SB = _core_.ALWAYS_SHOW_SB @@ -11221,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