get LOCALE_ENCODING a different way as the current one crashed on start on mac osx
This commit is contained in:
parent
63f3bbb15f
commit
68cb7e5e54
|
@ -207,8 +207,8 @@ DATABASE_TYPES = (
|
|||
DATABASE_TYPE_MYSQL,
|
||||
)
|
||||
|
||||
#LOCALE_ENCODING = locale.getdefaultlocale()[1]
|
||||
LOCALE_ENCODING = locale.getpreferredencoding()
|
||||
LOCALE_ENCODING = locale.getdefaultlocale()[1]
|
||||
#LOCALE_ENCODING = locale.getpreferredencoding() #this breaks on Mac OSX - please leave this comment
|
||||
if LOCALE_ENCODING == "US-ASCII":
|
||||
LOCALE_ENCODING = "cp1252"
|
||||
if (os.uname()[0]!="Darwin"):
|
||||
|
|
Loading…
Reference in New Issue
Block a user