Mesa (main): ci/windows: work around meson encoding issues

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Thu Jun 24 18:15:27 UTC 2021


Module: Mesa
Branch: main
Commit: b437fb810a83382cfae9aa2f38875a9a47e011a1
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=b437fb810a83382cfae9aa2f38875a9a47e011a1

Author: Erik Faye-Lund <erik.faye-lund at collabora.com>
Date:   Tue Jun 22 12:42:50 2021 +0200

ci/windows: work around meson encoding issues

It turns out, some combinations of Meson and MSVC doesn't handle UTF-8
symbols in source-files as gracefully as we'd like. Luckily, there's a
work-around; forcing UTF-8 as the default-encoding.

Please see this Meson ticket for details:
https://github.com/mesonbuild/meson/issues/8263

Cc: mesa-stable
Reviewed-by: Jesse Natalie <jenatali at microsoft.com>
Reviewed-by: Daniel Stone <daniels at collabora.com>
Acked-by: Mike Blumenkrantz <michael.blumenkrantz at gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11424>

---

 .gitlab-ci/windows/mesa_build.ps1 | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/.gitlab-ci/windows/mesa_build.ps1 b/.gitlab-ci/windows/mesa_build.ps1
index efa6527c776..40008c5ac99 100644
--- a/.gitlab-ci/windows/mesa_build.ps1
+++ b/.gitlab-ci/windows/mesa_build.ps1
@@ -2,6 +2,8 @@
 Write-Host "Refreshing Windows TLS CA cache"
 (New-Object System.Net.WebClient).DownloadString("https://github.com") >$null
 
+$env:PYTHONUTF8=1
+
 Get-Date
 Write-Host "Compiling Mesa"
 $builddir = New-Item -ItemType Directory -Name "_build"



More information about the mesa-commit mailing list