diff options
author | Takuji Tanaka <ttk@t-lab.opal.ne.jp> | 2022-12-29 03:11:47 +0000 |
---|---|---|
committer | Takuji Tanaka <ttk@t-lab.opal.ne.jp> | 2022-12-29 03:11:47 +0000 |
commit | f41afb56129d941a160b26fb76ba2caf37f226ed (patch) | |
tree | b8335ddff7d126eb3ad7bb55fe64041b37ae408a | |
parent | 788cf728c00d34c8f2aaf240d89b937ddbae2954 (diff) |
(u)ptex: tests for filename, set C.UTF-8 locale if not found
git-svn-id: svn://tug.org/texlive/trunk@65393 c570f23f-e606-0410-a88d-b1316a301751
-rwxr-xr-x | Build/source/texk/web2c/ptexdir/wcfname.test | 5 | ||||
-rwxr-xr-x | Build/source/texk/web2c/uptexdir/wcfname.test | 5 |
2 files changed, 10 insertions, 0 deletions
diff --git a/Build/source/texk/web2c/ptexdir/wcfname.test b/Build/source/texk/web2c/ptexdir/wcfname.test index 71c0dc54454..fe9b369257a 100755 --- a/Build/source/texk/web2c/ptexdir/wcfname.test +++ b/Build/source/texk/web2c/ptexdir/wcfname.test @@ -20,6 +20,11 @@ for loc in C.UTF-8 C.utf8 en_US.UTF-8 en_US.utf8 ja_JP.UTF-8 ja_JP.utf8; do break fi done +if [ $ret = 1 ]; then + # linux musl fails to run `locale -a` but seems to have C.UTF-8 + loc=C.UTF-8 + LC_ALL=$loc; LANGUAGE=$loc; export LC_ALL LANGUAGE +fi perl $srcdir/tests/fn-generate.perl || exit 128 mv fn*.tex ptests/ diff --git a/Build/source/texk/web2c/uptexdir/wcfname.test b/Build/source/texk/web2c/uptexdir/wcfname.test index d787926d5af..45abda1bd0d 100755 --- a/Build/source/texk/web2c/uptexdir/wcfname.test +++ b/Build/source/texk/web2c/uptexdir/wcfname.test @@ -20,6 +20,11 @@ for loc in C.UTF-8 C.utf8 en_US.UTF-8 en_US.utf8 ja_JP.UTF-8 ja_JP.utf8; do break fi done +if [ $ret = 1 ]; then + # linux musl fails to run `locale -a` but seems to have C.UTF-8 + loc=C.UTF-8 + LC_ALL=$loc; LANGUAGE=$loc; export LC_ALL LANGUAGE +fi perl $srcdir/tests/fn-generate.perl || exit 128 mv fn*.tex uptests/ |