Ticket #38304: patch-binutils-winduni.c.diff

File patch-binutils-winduni.c.diff, 670 bytes (added by tuffnatty (Phil Krylov), 12 years ago)

Source code patch

  • binutils/winduni.c

    old new  
    8585  { 1258, "WINDOWS-1258" },
    8686  { CP_UTF7, "UTF-7" },
    8787  { CP_UTF8, "UTF-8" },
    88   { CP_UTF16, "UTF-16" },
     88  { CP_UTF16, "UTF-16LE" },
    8989  { (rc_uint_type) -1, NULL }
    9090};
    9191
     
    682682
    683683  if (!mb || !iconv_name)
    684684    return 0;
    685   iconv_t cd = iconv_open ("UTF-16", iconv_name);
     685  iconv_t cd = iconv_open ("UTF-16LE", iconv_name);
    686686
    687687  while (1)
    688688    {
     
    755755
    756756  if (!u || !iconv_name)
    757757    return 0;
    758   iconv_t cd = iconv_open (iconv_name, "UTF-16");
     758  iconv_t cd = iconv_open (iconv_name, "UTF-16LE");
    759759
    760760  while (1)
    761761    {