This is the mail archive of the gdb@sources.redhat.com mailing list for the GDB project.


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

Re: Displaying Unicode


Eli Zaretskii wrote:
> If all you need is to display something like "U+1234" for a UTF-8
> encoding, then it should be easy to make this happen, either in GDB or
> ...

Great.

What Gdb command do I use to display a UTF-8 or UTF-16 
*string* with the ascii characters displayed as ascii 
(not "U+0041") and non ascii characters displayed as 
"U+1234"?

I say *string* as I sure don't want to print each character 
out separately.

> I thought you wanted something much more sophisticated (since text
> which looks like "U+1234 U+4321 U+5789" etc. is all not easy to read).

I did say:

    A more sophisticated display routine would check if the 
    non ascii was displayable in the current locale and if so
    would convert it to the current locale encoding for
    display. This way developers that can read Japanese, etc.
    can see (hopefully something close to) the intended
    text.

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