From 263c04a6b6ad8a18c9cdb7da847b695f0a8d6787 Mon Sep 17 00:00:00 2001 From: "Heiko Schlittermann (HS12)" Date: Sun, 10 May 2015 16:01:44 +0200 Subject: Docs: Make build unicode resistant Force LC_ALL=C for spec.txt. Add an additional build target: spec.utf8. --- doc/doc-docbook/GenLocalParams | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'doc/doc-docbook/GenLocalParams') diff --git a/doc/doc-docbook/GenLocalParams b/doc/doc-docbook/GenLocalParams index 140890880..fc8e7fc58 100755 --- a/doc/doc-docbook/GenLocalParams +++ b/doc/doc-docbook/GenLocalParams @@ -5,8 +5,16 @@ output="${1:-local_params}" nicedate="$(date +"%d %b %Y")" +if which locale >/dev/null; then + charset="$(locale | grep ^LC_CTYPE=)" +else + charset=unknown +fi + exec > "$output" cat <