]> arthur.barton.de Git - bup.git/commit
test.sh: set LC_ALL=C for git fsck to avoid localized output
authorKarl-Philipp Richter <krichter@posteo.de>
Tue, 1 Sep 2020 19:09:03 +0000 (21:09 +0200)
committerRob Browning <rlb@defaultvalue.org>
Sun, 22 Nov 2020 21:09:50 +0000 (15:09 -0600)
commitb7d094edf89cd34c14344cc37e413b4a1d6d64be
tree03a336f8af23d0f218ce4d5649272050cc0e6ef5
parent6efdc0b06e89827a17297af418eea7b45b6e8d7c
test.sh: set LC_ALL=C for git fsck to avoid localized output

Observed on Ubuntu 20.04 with German as the primary language. The test
clearly parses output in English and since adapting the parsing to the
language of the test environment is not what the test tests,
specifying the language is the way to go.

The original problem can be reproduced via

  LC_ALL=de_DE.utf8  ./wvtest run t/test.sh

if your system has de_DE.utf8 avalilable.

Signed-off-by: Karl-Philipp Richter <krichter@posteo.de>
Reviewed-by: Rob Browning <rlb@defaultvalue.org>
[rlb@defaultvalue.org: adjust commit message; set LC_ALL=C just for
 fsck rather than setting LANGUAGE globally]
Signed-off-by: Rob Browning <rlb@defaultvalue.org>
Tested-by: Rob Browning <rlb@defaultvalue.org>
t/test.sh