Commit 8ab8e969 authored by Michael Hanselmann's avatar Michael Hanselmann
Browse files

Set locale when using docbook programs

At least docbook2man inserts a date formatted using the current
locale into its output.

Reviewed-by: iustinp
parent 60053f31
...@@ -5,6 +5,10 @@ set -e ...@@ -5,6 +5,10 @@ set -e
input="${1}" input="${1}"
output="${2}" output="${2}"
# docbook2man inserts a date formatted using the current locale into its
# output. Using the "C" locale makes sure it's always in the default format.
export LC_ALL=C
case "${output}" in case "${output}" in
*.pdf) cmd=docbook2pdf ;; *.pdf) cmd=docbook2pdf ;;
*.html) cmd='docbook2html --nochunks' ;; *.html) cmd='docbook2html --nochunks' ;;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment