diff options
Diffstat (limited to '')
-rw-r--r-- | converters/iconv-extra/files/patch-gcc41 | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/converters/iconv-extra/files/patch-gcc41 b/converters/iconv-extra/files/patch-gcc41 new file mode 100644 index 000000000000..dbaaacec85e2 --- /dev/null +++ b/converters/iconv-extra/files/patch-gcc41 @@ -0,0 +1,34 @@ +Index: ces/unicode-1-1-utf-7.c +=================================================================== +RCS file: /home/bbcvs/iconv/ces/unicode-1-1-utf-7.c,v +retrieving revision 1.2 +diff -u -r1.2 unicode-1-1-utf-7.c +--- ces/unicode-1-1-utf-7.c 22 Mar 2005 16:41:03 -0000 1.2 ++++ ces/unicode-1-1-utf-7.c 14 Dec 2006 22:47:58 -0000 +@@ -233,7 +233,7 @@ + if (*inbytesleft < 2) + return UCS_CHAR_NONE; + needbytes = 1; +- ch = char_type(*(++((unsigned char *)*inbuf))); ++ ch = char_type(*(++*inbuf)); + (*inbytesleft) --; + case utf7_printable: + utf7_state[0] = 0; +@@ -249,7 +249,7 @@ + (*inbytesleft) += needbytes; + return UCS_CHAR_NONE; + } +- switch (char_type(*(++(unsigned char *)*inbuf))) { ++ switch (char_type(*(++*inbuf))) { + case utf7_shift_out: + (*inbuf) ++; + (*inbytesleft) -= 2; +@@ -267,7 +267,7 @@ + return UCS_CHAR_INVALID; + } + (*inbytesleft) --; +- return *((unsigned char *)*inbuf) ++; ++ return *(*inbuf)++; + #undef utf7_state + } + |