This is the mail archive of the
mailing list for the GCC project.
Re: gcc compile-time (multibyte issue)
- From: starner at okstate dot edu
- To: gcc at gcc dot gnu dot org
- Date: Sun, 19 May 2002 19:16:36 -0500 (CDT)
- Subject: Re: gcc compile-time (multibyte issue)
>This gets fixed by documentation. The -gnatym switch counts raw input
>characters, not logical character positions. That's intentional, just
>needs documenting clearly.
It doesn't count raw input characters; it counts raw input bytes. Counting
characters would get this case correct for UTF-8, and that would get closer
than counting bytes. If you want to count positions, Markus Kuhn's public
domain wcwidth could be dropped in, and would fit how it would be displayed
on most consoles and when printed.