aboutsummaryrefslogtreecommitdiff
path: root/converters/iconv-extra
diff options
context:
space:
mode:
authorAlexander Nedotsukov <bland@FreeBSD.org>2006-12-19 09:00:18 +0000
committerAlexander Nedotsukov <bland@FreeBSD.org>2006-12-19 09:00:18 +0000
commit27dd63ed69cc7ccd7933b2666a63288d470a1661 (patch)
treefbbe2107dd35e4edbb9301660aec2fcdf673e29f /converters/iconv-extra
parent75211bc88a2add9b3cf2337eb15900e31398a7df (diff)
downloadports-27dd63ed69cc7ccd7933b2666a63288d470a1661.tar.gz
ports-27dd63ed69cc7ccd7933b2666a63288d470a1661.zip
Notes
Diffstat (limited to 'converters/iconv-extra')
-rw-r--r--converters/iconv-extra/files/patch-gcc4134
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
+ }
+