ensure LANG is set to a UTF-8 locale

Otherwise, all input is assumed to be ASCII by default, which causes UTF-8 characters to be replaced by question marks. "C.UTF-8" the C locale with the UTF-8 codeset.
This commit is contained in:
John Lees-Miller 2015-02-09 15:50:50 +00:00 committed by Winston Li
parent 682a7e93ad
commit e51576dff9

View file

@ -54,8 +54,9 @@ do_start()
return 1;
fi
echo "Starting WriteLatex-Git Bridge..."
start-stop-daemon --start --quiet --make-pidfile --pidfile $PIDFILE --exec $DAEMON -- \
$DAEMON_ARGS >> /var/log/wlgb/out.log 2>> /var/log/err.log &
start-stop-daemon --start --quiet --make-pidfile --pidfile $PIDFILE \
--exec /usr/bin/env LANG="C.UTF-8" $DAEMON -- \
$DAEMON_ARGS >> /var/log/wlgb/out.log 2>> /var/log/err.log &
echo "WriteLatex-Git Bridge started."
echo "Config file at /etc/wlgb/config.json"
echo "Log file at /var/log/wlgb/out.log"