This is the mail archive of the gcc@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]

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.


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