diff options
author | dougb <dougb@FreeBSD.org> | 2004-06-09 11:41:37 +0000 |
---|---|---|
committer | dougb <dougb@FreeBSD.org> | 2004-06-09 11:41:37 +0000 |
commit | ce2f9bb9291d56735d3e8c6fd514eb29801e18b6 (patch) | |
tree | 9b7163ffa549ce6a87546c5ed82fd5ed9183004c /mail | |
parent | d46a7075dbf392c2f3c9bc650ee64a62a0ae42f1 (diff) | |
download | FreeBSD-ports-ce2f9bb9291d56735d3e8c6fd514eb29801e18b6.zip FreeBSD-ports-ce2f9bb9291d56735d3e8c6fd514eb29801e18b6.tar.gz |
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 <os@rsu.ru>
Diffstat (limited to 'mail')
-rw-r--r-- | mail/pine4/files/patch-pine_strings.c | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/mail/pine4/files/patch-pine_strings.c b/mail/pine4/files/patch-pine_strings.c new file mode 100644 index 0000000..979ca8a --- /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 ---- |