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 17:50:08 -04:00
parent 04a0166315
commit c24a8a2308
1 changed files with 1 additions and 0 deletions

View File

@ -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