This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: gcc compile-time (multibyte issue)
- From: dewar at gnat dot com (Robert Dewar)
- To: gcc at gcc dot gnu dot org, starner at okstate dot edu
- Date: Sun, 19 May 2002 22:41:00 -0400 (EDT)
- Subject: Re: gcc compile-time (multibyte issue)
<<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.
>>
Right it counts raw input bytes. In my judgment it would be an unacceptable
extra burden on the lexer to count logical characters. This is only a style
checking option, and the fact that it does not apply to UTF-8 does not bother
me. If someone wants to check style by counting real characters then that
can be done perfectly well by an external tool. Basically the style checing
options that are in GNAT are those necessary to enforce GNAT's own internal
style. We make them more generally available, since why not, but there is
no attempt to generalize into a full style checker -- that's more appropriate
as a separate tolol anyway.