summary refs log tree commit diff
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2019-12-20 18:26:15 -0500
committerJune McEnroe <june@causal.agency>2019-12-20 18:26:15 -0500
commit7699681b6a6f056e04cb799cdfa0d3e0db370fa2 (patch)
tree72a772855eafb9cc8834fcac5daa4d0a0a9f747f
parentSource .editrc before applying -v or -e (diff)
downloadsrc-7699681b6a6f056e04cb799cdfa0d3e0db370fa2.tar.gz
src-7699681b6a6f056e04cb799cdfa0d3e0db370fa2.zip
Set LANG in cgit filters
ttpre needs to know about UTF-8 too so it can bold/italic non-ASCII
chars.
-rw-r--r--www/git.causal.agency/about-filter.sh3
-rw-r--r--www/git.causal.agency/source-filter.sh1
2 files changed, 3 insertions, 1 deletions
diff --git a/www/git.causal.agency/about-filter.sh b/www/git.causal.agency/about-filter.sh
index 216c86e9..26a52648 100644
--- a/www/git.causal.agency/about-filter.sh
+++ b/www/git.causal.agency/about-filter.sh
@@ -1,8 +1,9 @@
 #!/bin/sh
 
+export LANG=en_US.UTF-8
 case "$1" in
 	(*.[1-9])
-		/usr/bin/mandoc -T utf8 \
+		/usr/bin/mandoc \
 			| /usr/local/libexec/ttpre \
 			| /usr/bin/sed -E \
 				's,([a-z0-9_-]+)[(]([1-9])[)],<a href="\1.\2">&</a>,g'
diff --git a/www/git.causal.agency/source-filter.sh b/www/git.causal.agency/source-filter.sh
index 868859b4..5c5eb734 100644
--- a/www/git.causal.agency/source-filter.sh
+++ b/www/git.causal.agency/source-filter.sh
@@ -1,5 +1,6 @@
 #!/bin/sh
 
+export LANG=en_US.UTF-8
 case "$1" in
 	(*.[1-9])
 		/usr/local/libexec/about-filter "$@"