decode using fs encoding
This commit is contained in:
parent
d4ad6d8cb9
commit
72e193c25c
|
@ -49,8 +49,8 @@ if os.name == 'nt':
|
||||||
except KeyError:
|
except KeyError:
|
||||||
# win9x, ./Logs etc
|
# win9x, ./Logs etc
|
||||||
LOGPATH = 'Logs' # deprecated
|
LOGPATH = 'Logs' # deprecated
|
||||||
VCARDPATH = 'Vcards'
|
|
||||||
LOG_DB_PATH = 'logs.db'
|
LOG_DB_PATH = 'logs.db'
|
||||||
|
VCARDPATH = 'Vcards'
|
||||||
else: # Unices
|
else: # Unices
|
||||||
DATA_DIR = '../data'
|
DATA_DIR = '../data'
|
||||||
LOGPATH = os.path.expanduser('~/.gajim/logs') # deprecated
|
LOGPATH = os.path.expanduser('~/.gajim/logs') # deprecated
|
||||||
|
@ -60,6 +60,7 @@ else: # Unices
|
||||||
try:
|
try:
|
||||||
LOGPATH = LOGPATH.decode(sys.getfilesystemencoding())
|
LOGPATH = LOGPATH.decode(sys.getfilesystemencoding())
|
||||||
VCARDPATH = VCARDPATH.decode(sys.getfilesystemencoding())
|
VCARDPATH = VCARDPATH.decode(sys.getfilesystemencoding())
|
||||||
|
LOG_DB_PATH = LOG_DB_PATH.decode(sys.getfilesystemencoding())
|
||||||
except:
|
except:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue