Skip to content

Commit 8b1d9f6

Browse files
committed
workflows/l10n.yml: Fix l10n_installation_test.
In "Test Make installation" step, set french locale BEFORE building with make. If not, the binary is build with no embedded french locale.
1 parent 159ea22 commit 8b1d9f6

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/l10n.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -595,6 +595,10 @@ jobs:
595595
## Test installation via make with DESTDIR
596596
echo "Testing make install with l10n features..."
597597
598+
# Set French locale
599+
export LANG=fr_FR.UTF-8
600+
export LC_ALL=fr_FR.UTF-8
601+
598602
# Create installation directory
599603
MAKE_INSTALL_DIR="$PWD/make-install-dir"
600604
mkdir -p "$MAKE_INSTALL_DIR"
@@ -632,10 +636,6 @@ jobs:
632636
if [ "${{ matrix.job.os }}" = "ubuntu-latest" ]; then
633637
echo "Testing French localization with make-installed binary..."
634638
635-
# Set French locale
636-
export LANG=fr_FR.UTF-8
637-
export LC_ALL=fr_FR.UTF-8
638-
639639
echo "Testing ls --help with French locale..."
640640
ls_help=$("$MAKE_INSTALL_DIR/usr/bin/coreutils" ls --help 2>&1 || echo "Command failed")
641641
echo "ls help output (first 10 lines):"

0 commit comments

Comments
 (0)