From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Paul Eggert Newsgroups: gmane.emacs.bugs Subject: bug#70822: flymake mishandles GCC diagnostics in en_US.UTF-8 locale Date: Tue, 7 May 2024 10:06:59 -0700 Organization: UCLA Computer Science Department Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="22455"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla Thunderbird To: 70822@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue May 07 19:08:15 2024 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1s4OIY-0005d0-Kb for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 07 May 2024 19:08:14 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1s4OIF-0001OO-Oa; Tue, 07 May 2024 13:07:55 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1s4OHx-0001FQ-JN for bug-gnu-emacs@gnu.org; Tue, 07 May 2024 13:07:43 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1s4OHx-0005eW-AY for bug-gnu-emacs@gnu.org; Tue, 07 May 2024 13:07:37 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1s4OIL-0003xt-Vq for bug-gnu-emacs@gnu.org; Tue, 07 May 2024 13:08:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Paul Eggert Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 07 May 2024 17:08:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 70822 X-GNU-PR-Package: emacs X-Debbugs-Original-To: Emacs bug reports and feature requests Original-Received: via spool by submit@debbugs.gnu.org id=B.171510167215230 (code B ref -1); Tue, 07 May 2024 17:08:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 7 May 2024 17:07:52 +0000 Original-Received: from localhost ([127.0.0.1]:43684 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1s4OIA-0003xa-Jh for submit@debbugs.gnu.org; Tue, 07 May 2024 13:07:52 -0400 Original-Received: from lists.gnu.org ([2001:470:142::17]:36130) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1s4OI1-0003xM-2D for submit@debbugs.gnu.org; Tue, 07 May 2024 13:07:49 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1s4OHT-0000z9-UJ for bug-gnu-emacs@gnu.org; Tue, 07 May 2024 13:07:07 -0400 Original-Received: from mail.cs.ucla.edu ([131.179.128.66]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1s4OHQ-0005Xg-1a for bug-gnu-emacs@gnu.org; Tue, 07 May 2024 13:07:07 -0400 Original-Received: from localhost (localhost [127.0.0.1]) by mail.cs.ucla.edu (Postfix) with ESMTP id 3F1AD3C01409F for ; Tue, 7 May 2024 10:07:00 -0700 (PDT) Original-Received: from mail.cs.ucla.edu ([127.0.0.1]) by localhost (mail.cs.ucla.edu [127.0.0.1]) (amavis, port 10032) with ESMTP id 1-k_w6iaJo8T for ; Tue, 7 May 2024 10:07:00 -0700 (PDT) Original-Received: from localhost (localhost [127.0.0.1]) by mail.cs.ucla.edu (Postfix) with ESMTP id E7DA03C0140A0 for ; Tue, 7 May 2024 10:06:59 -0700 (PDT) DKIM-Filter: OpenDKIM Filter v2.10.3 mail.cs.ucla.edu E7DA03C0140A0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cs.ucla.edu; s=9D0B346E-2AEB-11ED-9476-E14B719DCE6C; t=1715101619; bh=QIp3zrucVh92pDFsLGTtu5vg89wLPhByIQtxkWlkL58=; h=Message-ID:Date:MIME-Version:To:From; b=CqSDz8g8+TNYCWg3vtbDHV/mnec/aX+Y6QF70hghZXnLPTlg/5lKiqKolvWbuM8p2 JclwUIzoBW/sIRzbYM5w+hnT5NqNxd3DyvXIuoPhLnKVW4D4y22vzDqKNBZ37uJDle qZDqx424SjpbO+VKzD7aE3pes6JwmSN4rc7JYfK+aD7HEtJF0kCDD0SSJccFpBonJT ALaE3LUFSDJzQ2amjPDpRMadzHvEFWykzttOvbORPAjyA6RUh/+Y3mWx5c7sXTa6aq KHRAEnGu1JXuMBNKw/BRlGrNKB+fkYQvUiuKex6Km2jVyOTz8a4QsDVS+cHuwRVQBK u+Ev2ml/AqEbg== X-Virus-Scanned: amavis at mail.cs.ucla.edu Original-Received: from mail.cs.ucla.edu ([127.0.0.1]) by localhost (mail.cs.ucla.edu [127.0.0.1]) (amavis, port 10026) with ESMTP id FxBKA_0JRYeM for ; Tue, 7 May 2024 10:06:59 -0700 (PDT) Original-Received: from [192.168.254.12] (unknown [47.154.17.165]) by mail.cs.ucla.edu (Postfix) with ESMTPSA id D0E103C01409F for ; Tue, 7 May 2024 10:06:59 -0700 (PDT) Content-Language: en-US Received-SPF: pass client-ip=131.179.128.66; envelope-from=eggert@cs.ucla.edu; helo=mail.cs.ucla.edu X-Spam_score_int: -19 X-Spam_score: -2.0 X-Spam_bar: -- X-Spam_report: (-2.0 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:284648 Archived-At: In the en_US.UTF-8 locale on Fedora 40, (GCC) 14.0.1 20240411 (Red Hat=20 14.0.1-0) uses curved single quotes =E2=80=98like this=E2=80=99. This cau= ses Emacs =E2=80=98make=20 check=E2=80=99 to fail in the flymake tests. For example, in the C locale 'gcc=20 test/lisp/progmodes/flymake-resources/some-problems.h' outputs this: test/lisp/progmodes/flymake-resources/some-problems.h:3:1: warning:=20 data definition has no type or storage class 3 | strange; | ^~~~~~~ test/lisp/progmodes/flymake-resources/some-problems.h:3:1: warning:=20 type defaults to 'int' in declaration of 'strange' [-Wimplicit-int] test/lisp/progmodes/flymake-resources/some-problems.h:7:1: error:=20 unknown type name 'sint'; did you mean 'int'? 7 | sint main(); | ^~~~ | int whereas in the en_US.UTF-8 locale the same command outputs this instead: test/lisp/progmodes/flymake-resources/some-problems.h:3:1: warning:=20 data definition has no type or storage class 3 | strange; | ^~~~~~~ test/lisp/progmodes/flymake-resources/some-problems.h:3:1: error:=20 type defaults to =E2=80=98int=E2=80=99 in declaration of =E2=80=98strange= =E2=80=99 [-Wimplicit-int] test/lisp/progmodes/flymake-resources/some-problems.h:7:1: error:=20 unknown type name =E2=80=98sint=E2=80=99; did you mean =E2=80=98int=E2=80= =99? 7 | sint main(); | ^~~~ | int and flymake mishandles the latter set of diagnostics.