[Bug c++/49973] Column numbers count special characters as multiple columns

manu at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Thu Aug 4 12:18:00 GMT 2011


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49973

Manuel López-Ibáñez <manu at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |manu at gcc dot gnu.org

--- Comment #5 from Manuel López-Ibáñez <manu at gcc dot gnu.org> 2011-08-04 12:18:19 UTC ---
GNU Emacs 23.2.1 counts it as two, and puts the cursor at s.

For the simpler case of:

/* ñ */ asdf;

we print 

test.c:3:10: error: ‘asdf’ was not declared in this scope

whereas emacs counts only 1 char, so it again puts the cursor at s. I am not
sure whether Emacs is following some GNU standard, but the case of ñ versus n,
should at least produce the same result.

Unfortunately, I don't have time to work on this.



More information about the Gcc-bugs mailing list