Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 20 Apr 2002 13:53:55 +0900 (KST)
From:      Hye-Shik Chang <perky@fallin.lv>
To:        FreeBSD-gnats-submit@freebsd.org
Cc:        gnome@freebsd.org
Subject:   Patch port: converters/libiconv (for korean real world)
Message-ID:  <200204200453.g3K4rtH82362@kornet.hanirc.org>

next in thread | raw e-mail | index | archive | help

>Submitter-Id:	current-users
>Originator:	Hye-Shik Chang
>Organization:	Yonsei University
>Confidential:	no
>Synopsis:	Patch port: converters/libiconv (for korean real world)
>Severity:	non-critical
>Priority:	low
>Category:	ports
>Class:		change-request
>Release:	FreeBSD 4.5-STABLE i386
>Environment:
System: FreeBSD kornet.hanirc.org 4.5-STABLE FreeBSD 4.5-STABLE #0: Mon Mar 18 17:23:59 KST 2002 root@kornet.hanirc.org:/home/src/sys/compile/HANIRC i386

>Description:
In korean real world, KSC5601 contains US-ASCII and KSC5601 at 0xA1A1- area.
This layout is same as libiconv's EUC-KR.
But, libiconv defined ksc5601 aliases as unusable charset that contains
only korean characters without any us-ascii(what's that!).
As a result, many mail clients and webbrowsers including mutt can't decode
mails from M$'s one.

>How-To-Repeat:
view mails encoded in ks_c_5601-1987

>Fix:

diff -ruN libiconv.orig/Makefile libiconv/Makefile
--- libiconv.orig/Makefile	Tue Mar 19 17:44:02 2002
+++ libiconv/Makefile	Sat Apr 20 12:44:48 2002
@@ -7,7 +7,7 @@
 
 PORTNAME=	libiconv
 PORTVERSION=	1.7
-PORTREVISION=	2
+PORTREVISION=	3
 CATEGORIES=	converters devel
 MASTER_SITES=	${MASTER_SITE_GNU} \
 		ftp://ftp.ilog.fr/pub/Users/haible/gnu/
diff -ruN libiconv.orig/files/patch-lib::aliases.h libiconv/files/patch-lib::aliases.h
--- libiconv.orig/files/patch-lib::aliases.h	Thu Jan  1 09:00:00 1970
+++ libiconv/files/patch-lib::aliases.h	Sat Apr 20 12:44:03 2002
@@ -0,0 +1,56 @@
+--- lib/aliases.h.orig	Sat Apr 20 12:40:19 2002
++++ lib/aliases.h	Sat Apr 20 12:41:15 2002
+@@ -167,7 +167,7 @@
+       {""}, {""}, {""},
+       {"IBM862", ei_cp862},
+       {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""},
+-      {"KOREAN", ei_ksc5601},
++      {"KOREAN", ei_euc_kr},
+       {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""},
+       {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""},
+       {""}, {""}, {""},
+@@ -614,7 +614,7 @@
+       {""}, {""}, {""}, {""}, {""}, {""},
+       {"ISO_8859-15", ei_iso8859_15},
+       {""}, {""}, {""}, {""}, {""}, {""}, {""},
+-      {"ISO-IR-149", ei_ksc5601},
++      {"ISO-IR-149", ei_euc_kr},
+       {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""},
+       {""}, {""}, {""},
+       {"CP1255", ei_cp1255},
+@@ -662,7 +662,7 @@
+       {"ISO_8859-9", ei_iso8859_9},
+       {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""},
+       {""}, {""}, {""}, {""}, {""}, {""}, {""},
+-      {"KSC_5601", ei_ksc5601},
++      {"KSC_5601", ei_euc_kr},
+       {""}, {""}, {""},
+       {"CSEUCKR", ei_euc_kr},
+       {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""},
+@@ -680,7 +680,7 @@
+       {""}, {""},
+       {"ISO_8859-13", ei_iso8859_13},
+       {""}, {""}, {""},
+-      {"KS_C_5601-1987", ei_ksc5601},
++      {"KS_C_5601-1987", ei_euc_kr},
+       {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""},
+       {""}, {""}, {""}, {""}, {""}, {""}, {""},
+       {"CP1253", ei_cp1253},
+@@ -749,7 +749,7 @@
+       {""}, {""}, {""},
+       {"CSUNICODE11UTF7", ei_utf7},
+       {""}, {""}, {""}, {""}, {""}, {""}, {""},
+-      {"KS_C_5601-1989", ei_ksc5601},
++      {"KS_C_5601-1989", ei_euc_kr},
+       {""}, {""}, {""}, {""}, {""}, {""},
+       {"CP1133", ei_cp1133},
+       {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""},
+@@ -807,7 +807,7 @@
+       {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""},
+       {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""},
+       {""}, {""},
+-      {"CSKSC56011987", ei_ksc5601}
++      {"CSKSC56011987", ei_euc_kr}
+     };
+ 
+   if (len <= MAX_WORD_LENGTH && len >= MIN_WORD_LENGTH)

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-gnome" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200204200453.g3K4rtH82362>