From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id D123D3857348; Tue, 11 Oct 2022 01:12:05 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org D123D3857348 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1665450725; bh=SMxId8LtauYP3xbY8J/UnUTDjDJ1Dw/tomP89khCcxA=; h=From:To:Subject:Date:From; b=svfm9CbcSW3gnn7wvn9lLLy+2VrP91m6YzaTsnYsbfwiD835gBifwjO+mcboobPtN RjLAo81eylZZflMaDpfJGTSHKdjCLoiUrKYomLy0q6Q2wtSINeyB2SVKyygYtRxEiX PZsTWQgqKarFRUucPTUBC9FmABj+8vDfKFnGhv1o= From: "ceh2624 at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c/107207] New: Code uses locale.h for thousands separator. Worked well in version 11.3.0, but not in 12.1.0 Date: Tue, 11 Oct 2022 01:12:05 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c X-Bugzilla-Version: 12.1.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: ceh2624 at gmail dot com 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: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone attachments.created Message-ID: 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=3D107207 Bug ID: 107207 Summary: Code uses locale.h for thousands separator. Worked well in version 11.3.0, but not in 12.1.0 Product: gcc Version: 12.1.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: ceh2624 at gmail dot com Target Milestone: --- Created attachment 53689 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=3D53689&action=3Dedit All the relevant files in a zip file See and compile the primes.c file. In version 12.1.0 the thousands separat= or no longer shows as a result in printf() output. For example... when prompted a user might enter "10000" then the next line is... printf("You entered %'d.\n", iTop); it should show 10,000 nut actually shows 10000=