From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id C1115385828A; Thu, 18 Jan 2024 10:06:24 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org C1115385828A DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1705572384; bh=fTn769esjbf3GuVBBd6KlMsjfzlhDp2sk0vLILSptDc=; h=From:To:Subject:Date:In-Reply-To:References:From; b=jj4VueMY/eZEW8C1szrWlpbXVhoNpWJBu/NOZ/StTV3WcHW6LDrvdtzHQQjy19ELv mMIMIgtnAKd5O6ILcCVxXaRFG1k6tYnClYj6W9CSvVykbaLy9f04DFilGn6kvNllp/ NbeTAptIZ41MNWomtXrkqnxN0KZh+KQIrd6IFfas= From: "ro at CeBiTec dot Uni-Bielefeld.DE" To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/113450] [14 Regression] std/format/functions/format.cc FAILs Date: Thu, 18 Jan 2024 10:06:24 +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: X-Bugzilla-Severity: normal X-Bugzilla-Who: ro at CeBiTec dot Uni-Bielefeld.DE X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 14.0 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=3D113450 --- Comment #2 from ro at CeBiTec dot Uni-Bielefeld.DE --- > --- Comment #1 from Jonathan Wakely --- > I assume that int8_t is char on Solaris, rather than signed char? Indeed. AFAIK char being signed goes back to SysVr4 at least (and has bitten us several times already, especially over in LLVM). > Formatting a char behaves differently from signed char, and other integral > types. > > I think this will fix it: [...] > That causes the lambda to use signed char instead of char, and that is > formatted as an integer not a character. It does indeed. Tested on both i386-pc-solaris2.11 and sparc-sun-solaris2.11 for good measure. Thanks!=