This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/49973] Column numbers count special characters as multiple columns
- From: "timothy003 at msn dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 4 Aug 2011 11:03:35 +0000
- Subject: [Bug c++/49973] Column numbers count special characters as multiple columns
- Auto-submitted: auto-generated
- References: <bug-49973-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49973
--- Comment #4 from Timothy Liang <timothy003 at msn dot com> 2011-08-04 11:03:32 UTC ---
(In reply to comment #3)
> Why 10? " /* ä */ " has 12 characters (and 14 bytes as utf8).
The four spaces is supposed to be a tab. Also, the column number starts from
one. So:
/* ä */ asdf
|
1234567890
Since I set the input charset as UTF-8, g++ should count the 'ä' as one
character, not three. And when I set it to latin1, g++ should count the 'ä' as
three, not six.