From 1d2b1e8e550b8aedf7a9e20ceffd5dc81c964ae9 Mon Sep 17 00:00:00 2001 From: sobomax Date: Thu, 21 Nov 2002 17:09:53 +0000 Subject: When requested to do cp1251<->koi8 conversion convert to/from koi8-u, not to koi8-r, so that not only Russian characters are converted proreply, but Ukrainian as well. Poked about by: Alex Belinsky Approved by: maintainer --- net-im/centericq/Makefile | 2 +- net-im/centericq/files/patch-src::centericq.cc | 16 ++++++++++++++++ 2 files changed, 17 insertions(+), 1 deletion(-) create mode 100644 net-im/centericq/files/patch-src::centericq.cc (limited to 'net-im') diff --git a/net-im/centericq/Makefile b/net-im/centericq/Makefile index d30428bc491e..b08cd48940f5 100644 --- a/net-im/centericq/Makefile +++ b/net-im/centericq/Makefile @@ -8,7 +8,7 @@ PORTNAME= centericq PORTVERSION= 4.8.7 -PORTREVISION= 2 +PORTREVISION= 3 CATEGORIES= net MASTER_SITES= http://konst.org.ua/download/ diff --git a/net-im/centericq/files/patch-src::centericq.cc b/net-im/centericq/files/patch-src::centericq.cc new file mode 100644 index 000000000000..a3fa52c27c8d --- /dev/null +++ b/net-im/centericq/files/patch-src::centericq.cc @@ -0,0 +1,16 @@ + +$FreeBSD$ + +--- src/centericq.cc 2002/11/21 14:55:51 1.1 ++++ src/centericq.cc 2002/11/21 14:56:12 +@@ -1460,8 +1460,8 @@ + unsigned char *table = 0; + + #ifdef HAVE_ICONV_H +- if(tdir == "kw") r = siconv(text, "koi8-r", "cp1251"); else +- if(tdir == "wk") r = siconv(text, "cp1251", "koi8-r"); else ++ if(tdir == "kw") r = siconv(text, "koi8-u", "cp1251"); else ++ if(tdir == "wk") r = siconv(text, "cp1251", "koi8-u"); else + #endif + r = text; + -- cgit