From ce2f9bb9291d56735d3e8c6fd514eb29801e18b6 Mon Sep 17 00:00:00 2001 From: dougb Date: Wed, 9 Jun 2004 11:41:37 +0000 Subject: Add a patch to fix 8-bit character set conversions that were broken in 4.60. The patch is from http://www.washington.edu/pine/pine-info/2004.06/msg00023.html, which is similar to the one in the PR. PR: ports/67522 Submitted by: Oleg Sharoiko --- mail/pine4/files/patch-pine_strings.c | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 mail/pine4/files/patch-pine_strings.c (limited to 'mail/pine4/files') diff --git a/mail/pine4/files/patch-pine_strings.c b/mail/pine4/files/patch-pine_strings.c new file mode 100644 index 000000000000..979ca8aa81da --- /dev/null +++ b/mail/pine4/files/patch-pine_strings.c @@ -0,0 +1,29 @@ +*** pine/strings.c.orig Thu May 6 10:47:29 2004 +--- pine/strings.c Wed Jun 9 04:16:00 2004 +*************** +*** 3754,3760 **** + p = ct->table = (unsigned char *) + fs_get(256 * sizeof(unsigned char)); + for(i = 0; i < 256; i++){ +! unsigned char fc; + p[i] = '?'; + switch(from->type){ /* get "from" UCS-2 codepoint */ + case CT_1BYTE0: /* ISO 8859-1 */ +--- 3754,3760 ---- + p = ct->table = (unsigned char *) + fs_get(256 * sizeof(unsigned char)); + for(i = 0; i < 256; i++){ +! unsigned int fc; + p[i] = '?'; + switch(from->type){ /* get "from" UCS-2 codepoint */ + case CT_1BYTE0: /* ISO 8859-1 */ +*************** +*** 3789,3795 **** + } + break; + } +- p[i] = i; + } + break; + } +--- 3789,3794 ---- -- cgit