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
This commit is contained in:
Martin Konecny 2012-05-14 18:35:20 -04:00
parent c24a8a2308
commit 92931f662f
2 changed files with 9 additions and 1 deletions

View file

@ -15,7 +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`
export LC_ALL=`cat /etc/default/locale | grep "LANG=" | cut -d= -f2 | tr -d "\n\""`
# 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