From c24a8a2308c1b51260379e09ef8779d460e90112 Mon Sep 17 00:00:00 2001 From: Martin Konecny Date: Mon, 14 May 2012 17:50:08 -0400 Subject: [PATCH] CC-3791: Media Monitor crash when there are media files with non-ascii name in watched folder -override LC_ALL=POSIX that happens on system bootup --- python_apps/media-monitor/airtime-media-monitor | 1 + 1 file changed, 1 insertion(+) diff --git a/python_apps/media-monitor/airtime-media-monitor b/python_apps/media-monitor/airtime-media-monitor index f1382824b..553568032 100755 --- a/python_apps/media-monitor/airtime-media-monitor +++ b/python_apps/media-monitor/airtime-media-monitor @@ -15,6 +15,7 @@ cd ${media_monitor_path} exec 2>&1 export PYTHONPATH=${api_client_path} +export LC_ALL=`cat /etc/default/locale | grep "LANG=" | cut -d= -f2` # Note the -u when calling python! we need it to get unbuffered binary stdout and stderr exec python -u ${media_monitor_path}${media_monitor_script} > /var/log/airtime/media-monitor/py-interpreter.log 2>&1