Browse Source

get LOCALE_ENCODING a different way as the current one crashed on start on mac osx

master
Steffen Schaumburg 13 years ago
parent
commit
8f9410fdbc
  1. 4
      pyfpdb/Configuration.py

4
pyfpdb/Configuration.py

@ -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":
print _("Default encoding set to US-ASCII, defaulting to CP1252 instead -- If you're not on a Mac, please report this problem.")
LOCALE_ENCODING = "cp1252"

Loading…
Cancel
Save