Bug#1021515: tex-common: user locale settings can cause postinst to fail
Hi Stuart,
thanks for testing ... indeed LC_ALL .. so something like this?
@@ -76,11 +76,14 @@ dhit_build_format ()
tempfile=$(mktemp -p /tmp fmtutil.XXXXXXXX)
# save LANG
LANGSAVE=$LANG
+ LCALLSAVE=$LCALLSAVE
LANG=C
+ LC_ALL=C
printf "Building format(s) $*.\n\tThis may take some time... "
if $FMTUTIL "$@" > $tempfile 2>&1 ; then
rm -f $tempfile
LANG=$LANGSAVE
+ LC_ALL=$LCALLSAVE
echo "done."
else
exec >&2
should do the trick I guess.
Will put it into git, and Hilmar will probably upload it at some point.
Regards
Norbert
On Mon, 10 Oct 2022, Stuart Prescott wrote:
> Setting LC_ALL=C seems to be an adequate workaround as that overrides all LC_*
> environment variables in one step.
--
PREINING Norbert https://www.preining.info
Mercari Inc. + IFMGA Guide + TU Wien + TeX Live
GPG: 0x860CDC13 fp: F7D8 A928 26E3 16A1 9FA0 ACF0 6CAC A448 860C DC13
Reply to: