[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 15:19: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
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2011.08.04 15:18:20
     Ever Confirmed|0                           |1

--- Comment #7 from Manuel López-Ibáñez <manu at gcc dot gnu.org> 2011-08-04 15:18:20 UTC ---
(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.



More information about the Gcc-bugs mailing list