Introduction
Introduction Statistics Contact Development Disclaimer Help
tpost-receive hook: force UTF-8 locale - stagit - static git page generator
git clone git://src.adamsgaard.dk/stagit
Log
Files
Refs
README
LICENSE
---
commit cfbf4a11adc8c2e3b55724e7341b18b21fc5b6f7
parent d7e003a51924d1686574598f7db5557faf65000e
Author: Hiltjo Posthuma <[email protected]>
Date: Tue, 31 Oct 2017 23:20:18 +0100
post-receive hook: force UTF-8 locale
tthis fixes encoding errors when the pages are generated in the
post-receive hook.
Diffstat:
M example_post-receive.sh | 4 ++++
1 file changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/example_post-receive.sh b/example_post-receive.sh
t@@ -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))
You are viewing proxied material from mx1.adamsgaard.dk. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.