[all-commits] [llvm/llvm-project] c2c103: [Flang][Windows] Fix test_errors.py by enforcing U...

Omair Javaid via All-commits all-commits at lists.llvm.org
Tue Apr 8 04:16:48 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: c2c1031e90adfd8f64c5cd1b5e3b8af663715caf
      https://github.com/llvm/llvm-project/commit/c2c1031e90adfd8f64c5cd1b5e3b8af663715caf
  Author: Omair Javaid <omair.javaid at linaro.org>
  Date:   2025-04-08 (Tue, 08 Apr 2025)

  Changed paths:
    M flang/test/Semantics/test_errors.py

  Log Message:
  -----------
  [Flang][Windows] Fix test_errors.py by enforcing UTF-8 encoding (#134625)

This patch fixes UnicodeDecodeError on Windows in test_errors.py. This
issue was observed on the flang-arm64-windows-msvc buildbot.
Semantics/OpenMP/interop-construct.f90 was crashing due to Python
defaulting to the cp1252 codec on Windows.

I have fixed this by explicitly setting encoding="utf-8" when reading
source files and invoking subprocess.run() in test_errors.py

flang-arm64-windows-msvc was running on stagging master which resulted
in this issue not being fixed earlier.
https://lab.llvm.org/staging/#/builders/206



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list