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

joseph at codesourcery dot com gcc-bugzilla@gcc.gnu.org
Wed Dec 7 20:56:00 GMT 2011


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

--- Comment #10 from joseph at codesourcery dot com <joseph at codesourcery dot com> 2011-12-07 20:56:01 UTC ---
On Wed, 7 Dec 2011, tromey at gcc dot gnu.org wrote:

> Note that GCC also handles the tab case incorrectly here.

Yes, GCC should be fixed to follow the GCS there as well.

The GCS now explicitly say "For non-ASCII characters, Unicode character 
widths should be used when in a UTF-8 locale; GNU libc and GNU gnulib 
provide suitable @code{wcwidth} functions."



More information about the Gcc-bugs mailing list