From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id D278D3858409; Thu, 4 Jan 2024 14:51:09 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org D278D3858409 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1704379869; bh=du0z+3B+yLPwmh+YyfYKmiEH7DOkEaKj+WGZcgzym14=; h=From:To:Subject:Date:In-Reply-To:References:From; b=v1Kd/Xcl3SXgFrR4s/QK8DPH3CXjz+PQT6ZwkU1ekxcbo7axpKPZs+RqvlVC9Qjxa vvpYk4FIMGzTRwjtQDakjve4nCiGONdPzZeJJ4iCG7TzTJ9K5jospJatc/gGhZHzYz SeYaAXrGGnMgVm09JVfIPZPbLNmv4xXVKswNOeRI= From: "pinskia at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/113230] 27_io/print/1.cc fails when run with qemu Date: Thu, 04 Jan 2024 14:51:09 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: libstdc++ X-Bugzilla-Version: 14.0 X-Bugzilla-Keywords: testsuite-fail X-Bugzilla-Severity: normal X-Bugzilla-Who: pinskia at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D113230 --- Comment #3 from Andrew Pinski --- (In reply to Jonathan Wakely from comment #2) > The point of the test is to write out a byte that isn't valid UTF-8, and > check that it's printed unchanged, as a single byte. If something does so= me > kind of iconv-like conversion on the test output and "fixes" the non-UTF-8 > output, then the test's assumption will not hold. Yes that is what I think is happening here. Qemu is doing the conversion fr= om Latin 1 to utf-8 . I filed this to record it until I had sometime to look into it further. May= be there is some env setting I am supposed to set for qemu to prevent this from happening.=