From 60af452dba5dd91642900ba58a97e9681f0fe5ca Mon Sep 17 00:00:00 2001 From: Pierre Schweitzer Date: Sat, 14 Jan 2012 17:27:58 +0000 Subject: [PATCH] Commit patch file that contains some of the needed changes for our binutils in RosBE svn path=/trunk/RosBE/; revision=1352 --- Patches/binutils-changes-against-2.22.patch | 30 +++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 Patches/binutils-changes-against-2.22.patch diff --git a/Patches/binutils-changes-against-2.22.patch b/Patches/binutils-changes-against-2.22.patch new file mode 100644 index 0000000..135c09a --- /dev/null +++ b/Patches/binutils-changes-against-2.22.patch @@ -0,0 +1,30 @@ +diff -Nru binutils/binutils/winduni.c binutils2/binutils/winduni.c +--- a/binutils/winduni.c 2009-09-02 09:22:32.000000000 +0200 ++++ b/binutils/winduni.c 2012-01-14 18:05:29.000000000 +0100 +@@ -85,7 +85,7 @@ + { 1258, "WINDOWS-1258" }, + { CP_UTF7, "UTF-7" }, + { CP_UTF8, "UTF-8" }, +- { CP_UTF16, "UTF-16" }, ++ { CP_UTF16, "UTF-16LE" }, + { (rc_uint_type) -1, NULL } + }; + +@@ -682,7 +682,7 @@ + + if (!mb || !iconv_name) + return 0; +- iconv_t cd = iconv_open ("UTF-16", iconv_name); ++ iconv_t cd = iconv_open ("UTF-16LE", iconv_name); + + while (1) + { +@@ -755,7 +755,7 @@ + + if (!u || !iconv_name) + return 0; +- iconv_t cd = iconv_open (iconv_name, "UTF-16"); ++ iconv_t cd = iconv_open (iconv_name, "UTF-16LE"); + + while (1) + {