]> snippets.scripts.mit.edu Git - Scripts/git/.git/commitdiff
zephyr-post-receive: Set UTF-8 locale
authorAnders Kaseorg <andersk@mit.edu>
Mon, 12 Aug 2013 23:31:45 +0000 (19:31 -0400)
committerAnders Kaseorg <andersk@mit.edu>
Mon, 12 Aug 2013 23:31:45 +0000 (19:31 -0400)
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 <andersk@mit.edu>
git-hooks/zephyr-post-receive

index 6feebad3b11690a2e78d985e3d74615f61dae2ed..595234c22b9ed3e69bcca6081851fa33a7d1ad4e 100755 (executable)
@@ -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`