CC-3791: Media Monitor crash when there are media files with non-ascii name in watched folder

-fixed with hack...
This commit is contained in:
Martin Konecny 2012-05-10 14:36:59 -04:00
parent a7a3da85c3
commit a734540e5b
1 changed files with 2 additions and 1 deletions

View File

@ -47,7 +47,8 @@ def configure_locale():
logger.debug("New locale set to: " + locale.setlocale(locale.LC_ALL, new_locale))
reload(sys)
sys.setdefaultencoding("UTF-8")
current_locale_encoding = locale.getlocale()[1].lower()
logger.debug("sys default encoding %s", sys.getdefaultencoding())
logger.debug("After %s", locale.nl_langinfo(locale.CODESET))