decode using fs encoding

This commit is contained in:
Nikos Kouremenos 2005-11-22 11:56:16 +00:00
parent d4ad6d8cb9
commit 72e193c25c
1 changed files with 2 additions and 1 deletions

View File

@ -49,8 +49,8 @@ if os.name == 'nt':
except KeyError:
# win9x, ./Logs etc
LOGPATH = 'Logs' # deprecated
VCARDPATH = 'Vcards'
LOG_DB_PATH = 'logs.db'
VCARDPATH = 'Vcards'
else: # Unices
DATA_DIR = '../data'
LOGPATH = os.path.expanduser('~/.gajim/logs') # deprecated
@ -60,6 +60,7 @@ else: # Unices
try:
LOGPATH = LOGPATH.decode(sys.getfilesystemencoding())
VCARDPATH = VCARDPATH.decode(sys.getfilesystemencoding())
LOG_DB_PATH = LOG_DB_PATH.decode(sys.getfilesystemencoding())
except:
pass