Date: Wed, 13 Oct 2004 16:32:36 +0800 (CST) From: Kuang-che Wu <kcwu@csie.org> To: FreeBSD-gnats-submit@FreeBSD.org Cc: thierry@FreeBSD.org Subject: ports/72628: [PATCH] x11/rxvt-unicode: multibyte related patches Message-ID: <200410130832.i9D8WaoK030547@kcwu.homeip.net> Resent-Message-ID: <200410130840.i9D8eLj0073537@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 72628 >Category: ports >Synopsis: [PATCH] x11/rxvt-unicode: multibyte related patches >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Wed Oct 13 08:40:21 GMT 2004 >Closed-Date: >Last-Modified: >Originator: Kuang-che Wu >Release: FreeBSD 6.0-CURRENT i386 >Organization: >Environment: System: FreeBSD kcwu.homeip.net 6.0-CURRENT FreeBSD 6.0-CURRENT #0: Sat Sep 4 05:33:38 CST >Description: - rxvt-unicode 4.0 change language name "cn" to "zh" - provide mbrtowc() workaround for old FreeBSD systems without mbstate fix - extra patch for box drawing characters, which respected locale width data Added file(s): - files/patch-mbrtowcfix - files/patch-src::rxvtfont.C Port maintainer (thierry@FreeBSD.org) is cc'd. Generated with FreeBSD Port Tools 0.63 >How-To-Repeat: >Fix: --- rxvt-unicode-4.0.patch begins here --- diff -ruN --exclude=CVS /usr/ports/x11/rxvt-unicode/Makefile /files/home/kcwu/work/ports/x/x11/rxvt-unicode/Makefile --- /usr/ports/x11/rxvt-unicode/Makefile Wed Oct 13 13:36:05 2004 +++ /files/home/kcwu/work/ports/x/x11/rxvt-unicode/Makefile Wed Oct 13 16:28:30 2004 @@ -123,7 +123,7 @@ # compile in support for additional codeset groups .if defined(WITH_ENCODING) -AVAIL_ENC= jp jp_ext kr cn cn_ext all +AVAIL_ENC= jp jp_ext kr zh zh_ext all . for ENC in ${AVAIL_ENC} . if (${WITH_ENCODING} == ${ENC}) _ENC= ${ENC} @@ -163,8 +163,8 @@ @${ECHO_MSG} '==> Options are: "jp" common japanese encodings;' @${ECHO_MSG} ' "jp_ext" rarely used but big japanese encodings;' @${ECHO_MSG} ' "kr" korean encodings;' - @${ECHO_MSG} ' "cn" common chinese encodings;' - @${ECHO_MSG} ' "cn_ext" rarely used but very big chinese encodigs;' + @${ECHO_MSG} ' "zh" common chinese encodings;' + @${ECHO_MSG} ' "zh_ext" rarely used but very big chinese encodigs;' @${ECHO_MSG} ' "all" all of the above;' @${ECHO_MSG} '==> For example, "WITH_ENCODING=kr" for korean encodings.' @${ECHO_MSG} diff -ruN --exclude=CVS /usr/ports/x11/rxvt-unicode/files/patch-mbrtowcfix /files/home/kcwu/work/ports/x/x11/rxvt-unicode/files/patch-mbrtowcfix --- /usr/ports/x11/rxvt-unicode/files/patch-mbrtowcfix Thu Jan 1 08:00:00 1970 +++ /files/home/kcwu/work/ports/x/x11/rxvt-unicode/files/patch-mbrtowcfix Sat Sep 11 06:03:40 2004 @@ -0,0 +1,17 @@ +--- src/command.C.orig Sat Sep 11 06:00:56 2004 ++++ src/command.C Sat Sep 11 06:03:38 2004 +@@ -1,3 +1,4 @@ ++#include <sys/param.h> + /*--------------------------------*-C-*---------------------------------* + * File: command.C + *----------------------------------------------------------------------* +@@ -2697,7 +2698,9 @@ + if (len == (size_t)-2) + { + // the mbstate stores incomplete sequences. didn't know this :/ ++#if __FreeBSD_version>502110 + cmdbuf_ptr = cmdbuf_endp; ++#endif + break; + } + diff -ruN --exclude=CVS /usr/ports/x11/rxvt-unicode/files/patch-src::rxvtfont.C /files/home/kcwu/work/ports/x/x11/rxvt-unicode/files/patch-src::rxvtfont.C --- /usr/ports/x11/rxvt-unicode/files/patch-src::rxvtfont.C Thu Jan 1 08:00:00 1970 +++ /files/home/kcwu/work/ports/x/x11/rxvt-unicode/files/patch-src::rxvtfont.C Wed Oct 13 16:09:17 2004 @@ -0,0 +1,11 @@ +--- src/rxvtfont.C.orig Wed Sep 8 13:44:38 2004 ++++ src/rxvtfont.C Sun Oct 3 03:07:41 2004 +@@ -345,7 +345,7 @@ + uint32_t *a = linedraw_command + (offs >> 4); + uint32_t *b = a + (offs & 15); + +- int W = r->TermWin.fwidth; ++ int W = r->TermWin.fwidth * wcwidth(t); + int H = r->TermWin.fheight; + + int x_[16]; --- rxvt-unicode-4.0.patch ends here --- >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200410130832.i9D8WaoK030547>