RFC: Displaying multibyte symbol names in readelf

Tom Tromey tromey@redhat.com
Thu May 31 13:58:00 GMT 2012


>>>>> "Andreas" == Andreas Schwab <schwab@linux-m68k.org> writes:

Andreas> Tom Tromey <tromey@redhat.com> writes:
>> I think this has the same issue, though, because printf is just going to
>> assume the current locale's encoding.

Andreas> printf "%s" doesn't use the locale at all.

Yeah, that was a confused way of thinking about it.

But suppose readelf does printf "%s".
How would you interpret the output of readelf?
It is presumably text - but what encoding does it use?

Tom



More information about the Binutils mailing list