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:
parent
a7a3da85c3
commit
a734540e5b
|
@ -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))
|
||||
|
|
Loading…
Reference in New Issue