binutils Newspaper
OCTOBER 6, 2026
gas — Proposed

gas: testsuite: Fix multibyte3 test cases on Windows.

Fixes Windows test failures in gas's multibyte3 test cases by adjusting regex matching.

This patch addresses failures in the multibyte3 test cases for the gas assembler on Windows. The failures occur because the regular expression [^:] used for matching file paths prevents correct recognition of Windows-style paths (e.g., D:/Works/...). The patch aims to correct the regular expressions within the test suite to properly handle these paths, ensuring the tests pass on Windows.

In the Thread 1 participant
  1. Jan Dubiec proposer

    Submits a patch to fix gas testsuite failures on Windows by adjusting regular expression matching for file paths.

    “These two test cases fail on Windows: [...] This is because the [^:] part of the regular expressions prevents them from matching the full file path on Windows”

In Details

The gas assembler's test suite includes tests for handling multibyte characters in file paths. On Windows, paths are typically represented with drive letters and backslashes (though forward slashes are often accepted), and can contain characters that might be misinterpreted by regular expressions designed for Unix-like path structures. This patch specifically targets the multibyte3 test case, modifying the regex to correctly parse Windows paths, which include a drive letter and colon, preventing the test from failing due to incorrect path matching.

For Context
gas
The GNU Assembler, a component of the binutils package responsible for converting assembly language code into machine code.
testsuite
A collection of tests designed to verify the correct functionality of a software component or program.
Windows
Microsoft's widely used family of graphical operating systems.
regular expression
A sequence of characters that defines a search pattern, used for pattern matching within strings.
multibyte character
A character that requires more than one byte to represent in a character encoding, often used for non-ASCII characters.
Filed Under: gastestsuiteWindowscross-platformregular expressions