doc: set LANG=C for building the tutorial images
authorFriedrich Beckmann <friedrich.beckmann@gmx.de>
Thu, 4 Jan 2024 11:04:15 +0000 (12:04 +0100)
committerFriedrich Beckmann <friedrich.beckmann@gmx.de>
Thu, 4 Jan 2024 11:04:15 +0000 (12:04 +0100)
The build process fails if the shell has set a different language
setting the us. This patch sets the language during the generation
of the documentation images.

Closes: https://savannah.gnu.org/bugs/?65124
doc/automake.mk

index 5c7d821c7584f65d7b0cc7a5362f078913e2bfa0..2dfe838546a35e3722d4a2eb7969929ad3195fba 100644 (file)
@@ -238,12 +238,12 @@ endif
 
 $(FIGURE_SPVS): $(pspp)
 .sps.spv:
-       $(AM_V_GEN)of=`pwd`/$@.tmp; (cd "$(top_srcdir)/examples" \
+       $(AM_V_GEN) LANG=C of=`pwd`/$@.tmp; (cd "$(top_srcdir)/examples" \
          && "$(abs_top_builddir)/$(pspp)" ../doc/pspp-figures/$(<F) -o $$of -O format=spv)
        $(AM_V_at)mv $@.tmp $@
 
 # In some cases, the tutorial only wants some parts of the output.
-convert = $(AM_V_GEN)LSAN_OPTIONS="suppressions=$(abs_top_srcdir)/tests/lsan.supp:print_suppressions=0:$$LSAN_OPTIONS" $(pspp_output) convert $< $@
+convert = $(AM_V_GEN) LANG=C LSAN_OPTIONS="suppressions=$(abs_top_srcdir)/tests/lsan.supp:print_suppressions=0:$$LSAN_OPTIONS" $(pspp_output) convert $< $@
 doc/pspp-figures/tutorial2a.spv: doc/pspp-figures/tutorial2.spv $(pspp_output)
        $(convert) --command='Descriptives'
 doc/pspp-figures/tutorial2b.spv: doc/pspp-figures/tutorial2.spv $(pspp_output)