Date: Tue, 8 Jan 2008 19:08:56 +0700 (KRAT) From: Eugene Grosbein <eugen@kuzbass.ru> To: FreeBSD-gnats-submit@FreeBSD.org Cc: aquatique-ports@rambler.ru Subject: ports/119447: [patch] ysm's charset conversion does not work Message-ID: <200801081208.m08C8u3A052184@www.svzserv.kemerovo.su> Resent-Message-ID: <200801081230.m08CU2bT022319@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 119447 >Category: ports >Synopsis: [patch] ysm's charset conversion does not work >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Tue Jan 08 12:30:01 UTC 2008 >Closed-Date: >Last-Modified: >Originator: Eugene Grosbein >Release: FreeBSD 4.11-STABLE i386 >Organization: Svyaz-Service JSC >Environment: System: FreeBSD www.svzserv.kemerovo.su 4.11-STABLE FreeBSD 4.11-STABLE #20: Mon Nov 27 13:23:00 KRAT 2006 eu@www.svzserv.kemerovo.su:/home4/obj/home/src/sys/WWW i386 >Description: The ICQ console client net-im/ysm has built-in charset conversion capability that may be turned on using its config file. Sadly, it does not work - does convert anything. >How-To-Repeat: Install ysm using ports, run it - it makes ~/.ysm/ysm-cfg. Read comments about CHARSET_TRANS and CHARSET_LOCAL there. Make changes to the config (example is for Russian language): CHARSET_TRANS>CP1251 CHARSET_LOCAL>KOI8-R Then try to use ysm. It won't translate anything. >Fix: Make directory /usr/ports/net-im/ysm/files and place the following patch there. This information found here: http://sourceforge.net/tracker/index.php?func=detail&aid=1850213&group_id=44296&atid=439086 Verified, it solves the problem. --- src/YSM_Charset.c.orig Tue Jan 8 18:07:05 2008 +++ src/YSM_Charset.c Tue Jan 8 18:07:32 2008 @@ -75,9 +75,9 @@ } } - ASCII_2_ucs4 = iconv_open("UCS4","ASCII"); - input_2_ucs4 = iconv_open("UCS4",charset_from); - ucs4_2_output = iconv_open(charset_to,"UCS4"); + ASCII_2_ucs4 = iconv_open("UCS-4","ASCII"); + input_2_ucs4 = iconv_open("UCS-4",charset_from); + ucs4_2_output = iconv_open(charset_to,"UCS-4"); if ((ASCII_2_ucs4 == (iconv_t)(-1)) || (input_2_ucs4 == (iconv_t)(-1)) >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200801081208.m08C8u3A052184>