From 3b2e812e51d1f12263e4ea8907bd73285687d555 Mon Sep 17 00:00:00 2001 From: Martin Konecny Date: Wed, 9 May 2012 12:21:53 -0400 Subject: [PATCH] CC-3791: Media Monitor crash when there are media files with non-ascii name in watched folder -debug info --- python_apps/media-monitor/media_monitor.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/python_apps/media-monitor/media_monitor.py b/python_apps/media-monitor/media_monitor.py index e9b03d8e1..df45a1745 100644 --- a/python_apps/media-monitor/media_monitor.py +++ b/python_apps/media-monitor/media_monitor.py @@ -26,6 +26,7 @@ from airtimefilemonitor.workerprocess import MediaMonitorWorkerProcess from airtimefilemonitor.airtimemediamonitorbootstrap import AirtimeMediaMonitorBootstrap def configure_locale(): + logger.debug("Before %s", locale.nl_langinfo(locale.CODESET)) current_locale = locale.getlocale() if current_locale[1] is None: @@ -48,6 +49,7 @@ def configure_locale(): current_locale_encoding = locale.getlocale()[1].lower() + logger.debug("After %s", locale.nl_langinfo(locale.CODESET)) if current_locale_encoding not in ['utf-8', 'utf8']: logger.error("Need a UTF-8 locale. Currently '%s'. Exiting..." % current_locale_encoding)