GNU bug report logs - #25987
25.2; support gcc fixit notes

Previous Next

Package: emacs;

Reported by: Tom Tromey <tom <at> tromey.com>

Date: Sun, 5 Mar 2017 21:49:01 UTC

Severity: wishlist

Merged with 29004

Found in versions 25.2, 27.0.50

Full log


View this message in rfc822 format

From: Eli Zaretskii <eliz <at> gnu.org>
To: David Malcolm <dmalcolm <at> redhat.com>
Cc: 25987 <at> debbugs.gnu.org
Subject: bug#25987: 25.2; support gcc fixit notes
Date: Tue, 20 Oct 2020 18:54:16 +0300
> From: David Malcolm <dmalcolm <at> redhat.com>
> Cc: 25987 <at> debbugs.gnu.org
> Date: Tue, 20 Oct 2020 10:52:05 -0400
> 
> One possible issue: in the final diagnostic, there's a fix-it hint with
> non-ASCII replacement text, replacing "two_pi" with "two_π" (where the
> final char in the latter is GREEK SMALL LETTER PI, U+03C0)
> 
> This replacement currently expressed as encoded bytes i.e:
> 
> fix-it:"demo.c":{51:10-51:16}:"two_\317\200"
> 
> where \317\200 is the octal-escaped representation of the two bytes of
> the UTF-8 encoding of the character.
> 
> Is this going to work for Emacs?

You mean, GCC doesn't actually emit the UTF-8 encoding of π, it emits
its ASCII-fied representation?  We'd need to decode that, but is that
really justified?  Why not emit UTF-8?




This bug report was last modified 4 years and 248 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.