Skip to content

Commit

Permalink
Debug msys codepage failure.
Browse files Browse the repository at this point in the history
  • Loading branch information
ni4 committed Nov 6, 2024
1 parent 9077b2d commit 0f35ec8
Showing 1 changed file with 45 additions and 0 deletions.
45 changes: 45 additions & 0 deletions .github/workflows/windows-msys2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,28 @@ jobs:
fetch-depth: 1
submodules: true

- name: Check environment
run: |
chcp
echo %PATH%
echo Lang:
echo %LANG%
echo LC_ALL:
echo %LC_ALL%
echo chcp.com:
chcp 65001
echo Printing unicode 1:
echo ✓
echo Printing unicode 2:
echo Блабла
where python
where python3
set PYTHONUTF8=1
echo Printing from Python:
python -c "print('\u2713')"
python -c "import sys; print(sys.stdout.encoding)"
shell: cmd

- name: Install MSys
uses: msys2/setup-msys2@v2
with:
Expand Down Expand Up @@ -127,8 +149,31 @@ jobs:

- name: Test
run: |
# Change codepage to utf-8
cat /d/a/_temp/setup-msys2/msys2.CMD
echo $PATH
echo "Lang:"
echo $LANG || true
echo "LC_ALL:"
echo $LC_ALL || true
echo "chcp.com:"
chcp.com 65001 || true
echo "Printing unicode 1:"
echo -e "\xE2\x9C\x93"
echo "Printing unicode 2:"
printf "Блабла"
which python || true
which python3 || true
export PYTHONUTF8=1
echo "Printing from Python:"
python -c 'print("\u2713")' || true
python -c 'import sys; print(sys.stdout.encoding)' || true
mkdir -p "build/Testing/Temporary"
cp "cmake/CTestCostData.txt" "build/Testing/Temporary"
export LC_ALL="en_US.UTF-8"
export LANG="en_US.UTF-8"
export PYTHONIOENCODING=utf-8
export PYTHONUTF8=1
export PATH="$PWD/build/src/lib:$PATH"
export RNP_LOG_CONSOLE=1
ctest --parallel ${{ env.CORES }} --test-dir build -C Debug --output-on-failure
Expand Down

0 comments on commit 0f35ec8

Please sign in to comment.