From owner-freebsd-ports-bugs@FreeBSD.ORG Wed Oct 26 13:10:18 2005 Return-Path: X-Original-To: freebsd-ports-bugs@hub.freebsd.org Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8D55716A41F for ; Wed, 26 Oct 2005 13:10:18 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id E15D343D4C for ; Wed, 26 Oct 2005 13:10:17 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.3/8.13.3) with ESMTP id j9QDAH9c011861 for ; Wed, 26 Oct 2005 13:10:17 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id j9QDAHHj011860; Wed, 26 Oct 2005 13:10:17 GMT (envelope-from gnats) Resent-Date: Wed, 26 Oct 2005 13:10:17 GMT Resent-Message-Id: <200510261310.j9QDAHHj011860@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, NIIMI Satoshi Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B996216A420 for ; Wed, 26 Oct 2005 13:07:29 +0000 (GMT) (envelope-from sa2c@sa2c.net) Received: from freebird.and.or.jp (ns.and.or.jp [203.141.148.11]) by mx1.FreeBSD.org (Postfix) with ESMTP id 80D3C43D60 for ; Wed, 26 Oct 2005 13:07:25 +0000 (GMT) (envelope-from sa2c@sa2c.net) Received: from localhost (localhost [127.0.0.1]) by freebird.and.or.jp (Postfix) with ESMTP id 7CDF12E056 for ; Wed, 26 Oct 2005 22:07:21 +0900 (JST) Message-Id: <20051026130720.E5B921145C@berkeley.l.sa2c.net> Date: Wed, 26 Oct 2005 22:07:20 +0900 (JST) From: NIIMI Satoshi To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Cc: Subject: ports/88032: PATCH: converters/mule-cs: coding categories are not set properly X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: NIIMI Satoshi List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 26 Oct 2005 13:10:18 -0000 >Number: 88032 >Category: ports >Synopsis: PATCH: converters/mule-cs: coding categories are not set properly >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: Wed Oct 26 13:10:17 GMT 2005 >Closed-Date: >Last-Modified: >Originator: NIIMI Satoshi >Release: FreeBSD 6.0-RC1 i386 >Organization: >Environment: System: FreeBSD berkeley.l.sa2c.net 6.0-RC1 FreeBSD 6.0-RC1 #1: Sun Oct 23 11:38:24 JST 2005 root@berkeley.l.sa2c.net:/usr/obj/usr/src/sys/GENERIC i386 >Description: un-define.el tries to get list of coding categories but it's too early. >How-To-Repeat: Start emacs as: emacs -q --eval "(require 'un-define) (set-language-environment 'Japanese)" and type M-x describe-variable RET coding-category-utf-8 RET The value is mule-utf-8, not utf-8. >Fix: --- mule-ucs.diff begins here --- Index: files/patch-lisp:un-define.el =================================================================== RCS file: files/patch-lisp:un-define.el diff -N files/patch-lisp:un-define.el --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ files/patch-lisp:un-define.el 26 Oct 2005 12:55:39 -0000 @@ -0,0 +1,24 @@ +--- lisp/un-define.el.orig Sat Jan 11 15:17:56 2003 ++++ lisp/un-define.el Wed Oct 26 21:54:59 2005 +@@ -875,6 +875,7 @@ + 'unicode-font-encoder 'unicode-font-encoder)) + + ;;; coding-category setup ++(defun un-define-setup-coding-category () + (let (category-list) + ;; set up coding-category + (if (boundp 'coding-category-utf-8) +@@ -893,10 +894,9 @@ + (if category-list + (progn + (set-coding-priority +- category-list) +- (add-hook 'set-language-environment-hook +- `(lambda () +- (set-coding-priority (quote ,category-list))))))) ++ category-list))))) ++(un-define-setup-coding-category) ++(add-hook 'set-language-environment-hook #'un-define-setup-coding-category) + + ; + ; Charset order dynamic modification. (Very simple version!) --- mule-ucs.diff ends here --- >Release-Note: >Audit-Trail: >Unformatted: