From 9eea24992406f031770e8deba5431d6d142d5f58 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sun, 4 Jul 2021 17:43:18 +0200 Subject: [PATCH] Set locale to C.UTF-8 when running tests under Wine Using UTF-8 encoding seems to be required for the Unicode file names to work with Wine. --- .github/workflows/ci_msw_cross.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/ci_msw_cross.yml b/.github/workflows/ci_msw_cross.yml index 53eb0b247c..5e12ebf652 100644 --- a/.github/workflows/ci_msw_cross.yml +++ b/.github/workflows/ci_msw_cross.yml @@ -60,6 +60,11 @@ jobs: # Default to 64-bit build. HOST_TRIPLET: ${{ matrix.triplet || 'x86_64-w64-mingw32' }} + # While our tests should run in any locale natively, it seems that Wine + # requires the locale encoding to be UTF-8 for Unicode file names to work + # correctly, so set the locale explicitly for it. + LC_ALL: C.UTF-8 + # Run all commands as the normal user, created by the first step below. # # Note that the Bash options used here are the same as for the default