[glibc] intl: create correct directory in tst-translit.sh

Sam James via Glibc-cvs <[email protected]> Fri, 3 Jul 2026 12:29:05 +0000 (GMT)
Newsgroups gmane.comp.lib.glibc.cvs
Message-ID <[email protected]>
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=3c779ab1557b787890ebc85f33b2518ec48c1470

commit 3c779ab1557b787890ebc85f33b2518ec48c1470
Author: Sam James <[email protected]>
Date:   Fri Jul 3 00:33:33 2026 +0100

    intl: create correct directory in tst-translit.sh
    
    Depending on parallelism, it's possible for domaindir/existing-locale/LC_MESSAGES
    to have not been created yet:
    ```
    msgfmt: error while opening "build/intl/domaindir/existing-locale/LC_MESSAGES/translit.mo" for writing: No such file or directory
    make[2]: Leaving directory 'src/intl'
    FAIL: intl/tst-translit
    original exit status 1
    cat: build/intl/tst-translit.out: No such file or directory
    make[1]: *** [Makefile:944: test] Error 1
    ```
    
    If so, the following msgfmt call will fail. Fix the typo in the mkdir call.
    
    Arguably we should split these test preparations to avoid producing binaries
    we know won't PASS because their support data is missing.
    
    Reviewed-by: Collin Funk <[email protected]>

Diff:
---
 intl/tst-translit.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/intl/tst-translit.sh b/intl/tst-translit.sh
index 5665372444..8d1bea0566 100755
--- a/intl/tst-translit.sh
+++ b/intl/tst-translit.sh
@@ -24,7 +24,7 @@ test_program_prefix=$2
 objpfx=$3
 
 # Create the locale directories.
-mkdir -p ${objpfx}localedir/existing-locale/LC_MESSAGES
+mkdir -p ${objpfx}domaindir/existing-locale/LC_MESSAGES
 
 msgfmt -o ${objpfx}domaindir/existing-locale/LC_MESSAGES/translit.mo \
        translit.po