ipost-receive hook: force UTF-8 locale - stagit-gopher - A git gopher frontend. (mirror) Err bitreich.org 70 hgit clone git://bitreich.org/stagit-gopher/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/stagit-gopher/ URL:git://bitreich.org/stagit-gopher/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/stagit-gopher/ bitreich.org 70 1Log /scm/stagit-gopher/log.gph bitreich.org 70 1Files /scm/stagit-gopher/files.gph bitreich.org 70 1Refs /scm/stagit-gopher/refs.gph bitreich.org 70 1Tags /scm/stagit-gopher/tag bitreich.org 70 1README /scm/stagit-gopher/file/README.gph bitreich.org 70 1LICENSE /scm/stagit-gopher/file/LICENSE.gph bitreich.org 70 i--- Err bitreich.org 70 1commit 77efc691c14e0f1c2309b1709d598e0d106124ec /scm/stagit-gopher/commit/77efc691c14e0f1c2309b1709d598e0d106124ec.gph bitreich.org 70 1parent 9d2866fca3e3de693e52a21d7274ba00f7acfdf9 /scm/stagit-gopher/commit/9d2866fca3e3de693e52a21d7274ba00f7acfdf9.gph bitreich.org 70 hAuthor: Hiltjo Posthuma URL:mailto:hiltjo@codemadness.org bitreich.org 70 iDate: Wed, 18 Oct 2017 18:16:34 +0200 Err bitreich.org 70 i Err bitreich.org 70 ipost-receive hook: force UTF-8 locale Err bitreich.org 70 i Err bitreich.org 70 ithis fixes encoding errors when the pages are generated in the Err bitreich.org 70 ipost-receive hook. Err bitreich.org 70 i Err bitreich.org 70 iDiffstat: Err bitreich.org 70 i M example_post-receive.sh | 4 ++++ Err bitreich.org 70 i Err bitreich.org 70 i1 file changed, 4 insertions(+), 0 deletions(-) Err bitreich.org 70 i--- Err bitreich.org 70 1diff --git a/example_post-receive.sh b/example_post-receive.sh /scm/stagit-gopher/file/example_post-receive.sh.gph bitreich.org 70 i@@ -8,6 +8,10 @@ Err bitreich.org 70 i # if name is not set the basename of the current directory is used, Err bitreich.org 70 i # this is the directory of the repo when called from the post-receive script. Err bitreich.org 70 i Err bitreich.org 70 i+# NOTE: needs to be set for correct locale (expects UTF-8) otherwise the Err bitreich.org 70 i+# default is LC_CTYPE="POSIX". Err bitreich.org 70 i+export LC_CTYPE="en_US.UTF-8" Err bitreich.org 70 i+ Err bitreich.org 70 i name="$1" Err bitreich.org 70 i if test "${name}" = ""; then Err bitreich.org 70 i name=$(basename $(pwd)) Err bitreich.org 70 .