From 68cb7e5e548c2fad4c3185047adfe9bca04734d9 Mon Sep 17 00:00:00 2001 From: Steffen Schaumburg Date: Thu, 7 Apr 2011 15:16:05 +0200 Subject: [PATCH] get LOCALE_ENCODING a different way as the current one crashed on start on mac osx --- pyfpdb/Configuration.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pyfpdb/Configuration.py b/pyfpdb/Configuration.py index 26d1befc..ce2dae50 100644 --- a/pyfpdb/Configuration.py +++ b/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": LOCALE_ENCODING = "cp1252" if (os.uname()[0]!="Darwin"):