This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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

--- Comment #8 from Timothy Liang <timothy003 at msn dot com> 2011-08-04 19:52:31 UTC ---
(In reply to comment #7)
> (In reply to comment #6)
> > The GCS says "column numbers should start from 1 at the beginning of the 
> > line ... Calculate column numbers assuming that space and all ASCII 
> > printing characters have equal width, and assuming tab stops every 8 
> > columns.".  This doesn't say how other characters should be counted, 
> > although for the results of wcswidth seem appropriate.
> 
> Then GCC is not using wcswidth to count or it is setting the locale
> inappropriately because it is counting 2 for à and 3 for ä, while it should be
> 1 and 2.

I'm confused.  Shouldn't ä be 1?


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]