This is the mail archive of the binutils@sourceware.org mailing list for the binutils 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: RFC: Displaying multibyte symbol names in readelf


>>>>> "nick" == nick clifton <nickc@redhat.com> writes:

nick> I have changed my patch so that it does not try to do
nick> anything clever.  It just uses printf() to display the symbol names,
nick> and it does not try to do anything special with locale's.  Printf
nick> should handle multibyte characters all on its own, provided that the
nick> user has their environment set up correctly.  The patch does not try
nick> to set up any special environments of its own.

I think this has the same issue, though, because printf is just going to
assume the current locale's encoding.

I think that if symbols are UTF-8 encoded then the correct approach is
to use iconv to convert them to the locale's encoding.

Tom


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