http://sourceware.org/bugzilla/show_bug.cgi?id=13409

             Bug #: 13409
           Summary: winders should specify host endianness for iconv
                    explicitly
           Product: binutils
           Version: 2.21
            Status: NEW
          Severity: normal
          Priority: P2
         Component: binutils
        AssignedTo: unassig...@sourceware.org
        ReportedBy: hhg01...@nifty.ne.jp
    Classification: Unclassified


I installed binutils onto Mac OSX (host, i686 little endian) for mingw32msvc
(target, i386 little endian).
windres writes resource id and name string (not integer) in big endian into
COFF.
I investigated a function  wind_MultiByteToWideChar() in "winduni.c" .
I changed an argument,
  iconv_open ("UTF-16", iconv_name);
to
  iconv_open ("UTF-16LE", iconv_name);

This fixed the problem.

Regards.

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

_______________________________________________
bug-binutils mailing list
bug-binutils@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-binutils

Reply via email to