Sfoglia il codice sorgente

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.
John Lees-Miller 11 anni fa
parent
commit
e51576dff9
1 ha cambiato i file con 3 aggiunte e 2 eliminazioni
  1. 3 2
      services/git-bridge/bin/wlgb

+ 3 - 2
services/git-bridge/bin/wlgb

@@ -54,8 +54,9 @@ do_start()
 		return 1;
 		return 1;
 	fi
 	fi
 	echo "Starting WriteLatex-Git Bridge..."
 	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 "WriteLatex-Git Bridge started."
 	echo "Config file at /etc/wlgb/config.json"
 	echo "Config file at /etc/wlgb/config.json"
 	echo "Log file at /var/log/wlgb/out.log"
 	echo "Log file at /var/log/wlgb/out.log"