summaryrefslogtreecommitdiff
path: root/Build/source/texk
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2023-01-29 22:21:52 +0000
committerKarl Berry <karl@freefriends.org>2023-01-29 22:21:52 +0000
commit39b43e9ac814672a1e2bfca3c13e9529fcf6a777 (patch)
tree663718da89b6dae9cb7c7e746f07befa19a0c3b7 /Build/source/texk
parent0d39815152532111e22cc57db55c73fda1939fa9 (diff)
LC_ALL=C for locale-dependent tests
git-svn-id: svn://tug.org/texlive/trunk@65675 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk')
-rw-r--r--Build/source/texk/bibtex-x/ChangeLog8
-rwxr-xr-xBuild/source/texk/bibtex-x/tests/bibtexu-char.test20
-rwxr-xr-xBuild/source/texk/bibtex-x/tests/bibtexu-sort.test24
3 files changed, 29 insertions, 23 deletions
diff --git a/Build/source/texk/bibtex-x/ChangeLog b/Build/source/texk/bibtex-x/ChangeLog
index be11b3d3513..4b169c2f8a0 100644
--- a/Build/source/texk/bibtex-x/ChangeLog
+++ b/Build/source/texk/bibtex-x/ChangeLog
@@ -1,3 +1,11 @@
+2023-01-29 Karl Berry <karl@freefriends.org>
+
+ * tests/bibtexu-sort.test,
+ * tests/bibtexu-char.test: set LC_ALL and LANGUAGE to avoid
+ locale-dependent failure. Report from Johannes Hielscher,
+ tlbuild mail 29 Jan 2023 16:28:24.
+ (Also minor shell portability changes.)
+
2022-09-12 Karl Berry <karl@freefriends.org>
* README: new file to mention both programs.
diff --git a/Build/source/texk/bibtex-x/tests/bibtexu-char.test b/Build/source/texk/bibtex-x/tests/bibtexu-char.test
index 727810c6825..ec27840a309 100755
--- a/Build/source/texk/bibtex-x/tests/bibtexu-char.test
+++ b/Build/source/texk/bibtex-x/tests/bibtexu-char.test
@@ -1,17 +1,19 @@
#! /bin/sh -vx
-#
-# Copyright 2022 TANAKA Takuji <ttk@t-lab.opal.ne.jp>
+# $Id$
+# Copyright 2022-2023 TANAKA Takuji <ttk@t-lab.opal.ne.jp>
# You may freely use, modify and/or distribute this file.
-test -d tests || mkdir -p tests
+test -d tests || mkdir tests
+test -d tests || exit 1
-rc=0
+LC_ALL=C; export LC_ALL; LANGUAGE=C; export LANGUAGE
+#
+TEXMFCNF=$srcdir/../kpathsea; export TEXMFCNF
+BSTINPUTS=$srcdir/tests; export BSTINPUTS
+BIBINPUTS=$srcdir/tests; export BIBINPUTS
-TEXMFCNF=$srcdir/../kpathsea
-BSTINPUTS=$srcdir/tests
-BIBINPUTS=$srcdir/tests
-export TEXMFCNF BSTINPUTS BIBINPUTS
+rc=0
## test for add.period$
cp $srcdir/tests/periodu.aux tests/xperiodu.aux
@@ -49,6 +51,4 @@ cp $srcdir/tests/iscjku.aux tests/xiscjku.aux
./bibtexu tests/xiscjku || rc=15
diff $srcdir/tests/iscjku.bbl tests/xiscjku.bbl || rc=16
-
exit $rc
-
diff --git a/Build/source/texk/bibtex-x/tests/bibtexu-sort.test b/Build/source/texk/bibtex-x/tests/bibtexu-sort.test
index 624d7fb48a1..3003baee366 100755
--- a/Build/source/texk/bibtex-x/tests/bibtexu-sort.test
+++ b/Build/source/texk/bibtex-x/tests/bibtexu-sort.test
@@ -1,19 +1,21 @@
#! /bin/sh -vx
-#
-# Copyright 2022 TANAKA Takuji <ttk@t-lab.opal.ne.jp>
+# $Id$
+# Copyright 2022-2023 TANAKA Takuji <ttk@t-lab.opal.ne.jp>
# You may freely use, modify and/or distribute this file.
-test -d tests || mkdir -p tests
-
-rc=0
+test -d tests || mkdir tests
+test -d tests || exit 1
-TEXMFCNF=$srcdir/../kpathsea
-BSTINPUTS=$srcdir/tests
-BIBINPUTS=$srcdir/tests
-export TEXMFCNF BSTINPUTS BIBINPUTS
+LC_ALL=C; export LC_ALL; LANGUAGE=C; export LANGUAGE
+#
+TEXMFCNF=$srcdir/../kpathsea; export TEXMFCNF
+BSTINPUTS=$srcdir/tests; export BSTINPUTS
+BIBINPUTS=$srcdir/tests; export BIBINPUTS
rm -f tests/xsortu-*.bbl tests/xcaseu.bbl
+rc=0
+
for loc in en az da fi tr; do
## test for sorting and change.case$
@@ -29,8 +31,4 @@ cp $srcdir/tests/caseu.aux tests/xcaseu.aux
max_print_line=99 ./bibtexu tests/xcaseu || rc=3
diff $srcdir/tests/caseu.bbl tests/xcaseu.bbl || rc=4
-
exit $rc
-
-
-