[RFC] Signed/unsigned character arrays are not strings

mathieu lacage Mathieu.Lacage@sophia.inria.fr
Sun Feb 25 21:07:00 GMT 2007


On Sun, 2007-02-25 at 09:11 +1300, Nick Roberts wrote:

> I don't understand why unsigned chars should be printed as arrays except to
> solve Jan's particular problem.  Maybe Emacs uses unsigned char for 8 bit
> character sets like iso_8859-1:

I don't know how useful that is to you but a lot of people (the first
which comes to my mind is libxml2) decided to use "unsigned char *" to
identify utf-8 encoded strings in C.

Mathieu




More information about the Gdb mailing list