From e51576dff93ba2f583320f53595cae0bcad06f50 Mon Sep 17 00:00:00 2001 From: John Lees-Miller Date: Mon, 9 Feb 2015 15:50:50 +0000 Subject: [PATCH] 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. --- services/git-bridge/bin/wlgb | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/services/git-bridge/bin/wlgb b/services/git-bridge/bin/wlgb index 812753afb2..885e39dfed 100755 --- a/services/git-bridge/bin/wlgb +++ b/services/git-bridge/bin/wlgb @@ -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"