From owner-cvs-all Sat May 11 14:48:33 2002 Delivered-To: cvs-all@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 1C51F37B405; Sat, 11 May 2002 14:48:27 -0700 (PDT) Received: (from knu@localhost) by freefall.freebsd.org (8.11.6/8.11.6) id g4BLmRW47608; Sat, 11 May 2002 14:48:27 -0700 (PDT) (envelope-from knu) Message-Id: <200205112148.g4BLmRW47608@freefall.freebsd.org> From: Akinori MUSHA Date: Sat, 11 May 2002 14:48:27 -0700 (PDT) To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: ports/shells Makefile ports/shells/zsh+euc_hack Makefile pkg-comment ports/shells/zsh+euc_hack/files patch-Src::Zle::compmatch.c patch-Src::Zle::zle.c patch-Src::Zle::zle_main.c patch-Src::Zle::zle_move.c patch-Src::Zle::zle_refresh.c patch-Src::Zle::zle_utils.c ... X-FreeBSD-CVS-Branch: HEAD Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG knu 2002/05/11 14:48:27 PDT Modified files: shells Makefile Added files: shells/zsh+euc_hack Makefile pkg-comment shells/zsh+euc_hack/files patch-Src::Zle::compmatch.c patch-Src::Zle::zle.c patch-Src::Zle::zle_main.c patch-Src::Zle::zle_move.c patch-Src::Zle::zle_refresh.c patch-Src::Zle::zle_utils.c patch-config.h.in Log: Add zsh+euc, Zsh with EUC encoding support. This is just an experimental hack and cannot happily be merged into the upstream. Zsh's line editor apparently needs a rewrite in order to support multi-byte encodings because it strongly relies on the single-byte character scheme. These patches are mostly based on the work by ono@ono.org (Thanks!): http://www.ono.org/software/zsh-euc/ What I did over this is disable the hack for non-EUC locales. Maybe the patches can be moved to shells/zsh in the future, but it's premature for the moment. Notes: - forward-char, backward-char and backward-delete-char with no numeric argument should work properly with this hack. - Completion and redisplay should work fine. - There can be some trivial side-effects. - JIS X0201-Roman and JIS X0208-Kanji are supported. - JIS X0201-Katakana and JIS X0212 Kanji are NOT supported. - Only tested with the EUC-JP (ja_JP.eucJP) locale. I'm not sure if it works for GB 2312/CNS 11643-1/KS X 1001. Any feedbacks is welcome, especially a patch if it does not work. :) Revision Changes Path 1.37 +1 -0 ports/shells/Makefile 1.1 +18 -0 ports/shells/zsh+euc_hack/Makefile (new) 1.1 +57 -0 ports/shells/zsh+euc_hack/files/patch-Src::Zle::compmatch.c (new) 1.1 +11 -0 ports/shells/zsh+euc_hack/files/patch-Src::Zle::zle.c (new) 1.1 +199 -0 ports/shells/zsh+euc_hack/files/patch-Src::Zle::zle_main.c (new) 1.1 +38 -0 ports/shells/zsh+euc_hack/files/patch-Src::Zle::zle_move.c (new) 1.1 +47 -0 ports/shells/zsh+euc_hack/files/patch-Src::Zle::zle_refresh.c (new) 1.1 +20 -0 ports/shells/zsh+euc_hack/files/patch-Src::Zle::zle_utils.c (new) 1.1 +9 -0 ports/shells/zsh+euc_hack/files/patch-config.h.in (new) 1.1 +1 -0 ports/shells/zsh+euc_hack/pkg-comment (new) To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message