From: Anders Kaseorg Date: Mon, 12 Aug 2013 23:31:45 +0000 (-0400) Subject: zephyr-post-receive: Set UTF-8 locale X-Git-Url: https://sipb.mit.edu/gitweb.cgi/snippets/.git/commitdiff_plain/ed5ec5f524be46c3b511c01aeb55918d8e1c70f2?ds=sidebyside zephyr-post-receive: Set UTF-8 locale The hook script isn’t always run in a fully initialized environment; this makes sure the outgoing zephyr gets marked with the right charset. Signed-off-by: Anders Kaseorg --- diff --git a/git-hooks/zephyr-post-receive b/git-hooks/zephyr-post-receive index 6feebad..595234c 100755 --- a/git-hooks/zephyr-post-receive +++ b/git-hooks/zephyr-post-receive @@ -7,6 +7,8 @@ # For example: # aa453216d1b3e49e7f6f98441fa56946ddcd6a20 68f7abf4e6f922807889f52bc043ecd31b79f814 refs/heads/master +export LC_ALL=en_US.UTF-8 + class=`git config zephyr.class` instance=`git config zephyr.instance` zsig=`git config zephyr.zsig`