ddd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: unicode strings


From: Gadi Bergman
Subject: RE: unicode strings
Date: Tue, 31 May 2005 07:16:04 +0200

I was thinking about two different solutions:

1. Very trivial solution for taking care of Western European languages
only:
Arrays of 'unsigned long' and 'unsigned short' will be presentable to
the user as strings by writing each element that is lower than 0x100 as
a char with that value and other elements as '?'. For this solution, DDD
assumes Western European single-byte character encoding of the string.

2. Very complex solution for taking care of all languages:
Arrays of 'unsigned long' and 'unsigned short' will be presentable to
the user as strings by drawing each character using a Unicode font on
the DDD display section. For this solution, DDD does not assume any
multi-byte or single-byte encoding and may display a string composed of
any number of languages.

I do not recommend adding a dialog box for asking the user to specify an
encoding, certainly not for every string the user wishes to display.

How difficult do you believe it would be to implement solution number 1?
How difficult do you believe it would be to implement solution number 2?



-----Original Message-----
From: Andrew Gaylard [mailto:address@hidden 
Sent: Monday, May 30, 2005 3:09 PM
To: Gadi Bergman
Cc: address@hidden
Subject: Re: unicode strings

Gadi Bergman wrote:
> Hello Andrew and thank you for your very quick response,
> 
> I do not expect the protocol for X to be Unicode-based. However,
> programs written in Java do display their characters correctly for all
> languages when running under X. I assume that they are drawing their
own
> characters with built-in fonts. That would be hard to expect from
> text-based GDB, but since DDD is a graphic application then it is much
> more natural.
> 
> Thanks again,
> Gadi.

OK, then what's needed is a dialog box for DDD to specify the encoding,
and a button in "examine memory" which will unpack the bytes returned by
gdb in the encoding specified.  Yeah, that would do the trick.

Feel like contributing a patch?





reply via email to

[Prev in Thread] Current Thread [Next in Thread]