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 /Build/source/texk/web2c/ptexdir | |
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
Diffstat (limited to 'Build/source/texk/web2c/ptexdir')
-rwxr-xr-x | Build/source/texk/web2c/ptexdir/wcfname.test | 5 |
1 files changed, 5 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/ |