From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 420D93858C39; Fri, 14 Jan 2022 14:59:02 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 420D93858C39 From: "jakub at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug preprocessor/104030] [12 Regression] -Wbidi-chars should not warn about UCNs Date: Fri, 14 Jan 2022 14:59:02 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: preprocessor X-Bugzilla-Version: 12.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: jakub at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: mpolacek at gcc dot gnu.org X-Bugzilla-Target-Milestone: 12.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 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 14 Jan 2022 14:59:02 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D104030 --- Comment #2 from Jakub Jelinek --- Either we drop the UCN support altogether, or make -Wbidi-chars a 2 level warning, -Wbidi-chars mapping to -Wbidi-chars=3D1 which doesn't warn about = UCNs and -Wbidi-chars=3D2 that does. UCNs indeed don't have the problem that a user in an editor sees something different than what it actually is (unless some editor interprets UCNs and shows them as unicode chars), but one reason to warn about UCNs was to make sure that even what the program prints doesn't suffer from such problems. = Of course, if something like libreoffice (I bet) carefully ensures it is paire= d, but constructs it from smaller separate literals, then it is fine.=