stagit

static git repository generator

git clone https://9o.is/git/stagit.git

commit 5e07d256f75420882c99af2e9804869001558ae9
parent f9b96925911062b9db68444ffa4e15b24070bb00
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date:   Tue, 31 Oct 2017 23:20:18 +0100

post-receive hook: force UTF-8 locale

this fixes encoding errors when the pages are generated in the
post-receive hook.

Diffstat:
Mexample_post-receive.sh | 4++++
1 file changed, 4 insertions(+), 0 deletions(-)

diff --git a/example_post-receive.sh b/example_post-receive.sh @@ -8,6 +8,10 @@ # if name is not set the basename of the current directory is used, # this is the directory of the repo when called from the post-receive script. +# NOTE: needs to be set for correct locale (expects UTF-8) otherwise the +# default is LC_CTYPE="POSIX". +export LC_CTYPE="en_US.UTF-8" + name="$1" if test "${name}" = ""; then name=$(basename $(pwd))