From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Tatsuya Kinoshita Newsgroups: gmane.emacs.devel Subject: tmm.el: non-ASCII characters with locale-coding-system Date: Wed, 16 Apr 2008 22:09:02 +0900 (JST) Message-ID: <20080416.220902.173219381.tats%nobody@tats.iris.ne.jp> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1208351714 29917 80.91.229.12 (16 Apr 2008 13:15:14 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 16 Apr 2008 13:15:14 +0000 (UTC) Cc: nori1@dolphin.c.u-tokyo.ac.jp, czkmt@remus.dti.ne.jp To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Apr 16 15:15:48 2008 connect(): Connection refused Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1Jm7RX-00049L-Ds for ged-emacs-devel@m.gmane.org; Wed, 16 Apr 2008 15:12:55 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Jm7Qs-0006mG-DU for ged-emacs-devel@m.gmane.org; Wed, 16 Apr 2008 09:12:14 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Jm7Qo-0006li-CS for emacs-devel@gnu.org; Wed, 16 Apr 2008 09:12:10 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Jm7Qn-0006lR-6l for emacs-devel@gnu.org; Wed, 16 Apr 2008 09:12:09 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Jm7Qn-0006lO-2d for emacs-devel@gnu.org; Wed, 16 Apr 2008 09:12:09 -0400 Original-Received: from vega.ocn.ne.jp ([125.170.92.71] helo=smtp.vega.ocn.ne.jp) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Jm7Ql-0000Vy-Ry for emacs-devel@gnu.org; Wed, 16 Apr 2008 09:12:08 -0400 Original-Received: from localhost (EM119-72-20-249.pool.e-mobile.ne.jp [119.72.20.249]) by smtp.vega.ocn.ne.jp (Postfix) with ESMTP id 7B6BF3F2C; Wed, 16 Apr 2008 22:12:00 +0900 (JST) X-Mailer: Mew version 6.0.51 on Emacs 22.2 / Mule 5.0 (SAKAKI) X-detected-kernel: by monty-python.gnu.org: HP-UX 11.00-11.11 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:95344 Archived-At: Hi Emacs developers, Could you please consider applying the following patch to handle non-ASCII characters with locale-coding-system for tmm.el? ---- --- tmm.el.orig 2008-02-08 22:47:00.000000000 +0900 +++ tmm.el 2008-03-14 08:08:04.000000000 +0900 @@ -171,7 +171,7 @@ ;; The order of elements in tmm-km-list is the order of the menu bar. (mapc (lambda (elt) (if (stringp elt) - (setq gl-str elt) + (setq gl-str (decode-coding-string elt locale-coding-system)) (and (listp elt) (tmm-get-keymap elt not-menu)))) menu) ;; Choose an element of tmm-km-list; put it in choice. @@ -282,6 +282,7 @@ (defsubst tmm-add-one-shortcut (elt) ;; uses the free vars tmm-next-shortcut-digit and tmm-short-cuts + (setcar elt (decode-coding-string (car elt) locale-coding-system)) (cond ((eq (cddr elt) 'ignore) (cons (concat " " (make-string (length tmm-mid-prompt) ?\-) ---- The patch is created by Tetsuo Tsukamoto (czkmt at remus.dti.ne.jp) at http://mail.ring.gr.jp/skk/200803/msg00009.html to prevent a problem of displaying Japanese characters with tmm.el reported by Noritada Kobayashi at Debian BTS http://bugs.debian.org/470646. To reproduce the problem, * Install Daredevil SKK 13.1 (http://openlab.jp/skk/) and Emacs 23.0.60 or 22.2. * Run Emacs with `LC_ALL=ja_JP.UTF-8 emacs -q'. * Type `M-x skk-mode RET', `M-`' and `s' to select the menu `s==>SKK', and then garbled characters (\351\240\230...) are displayed. The patch works nicely on my system for Debian's ddskk 13.1-1, emacs22 22.1+1-3 and Romain's emacs-snapshot 1:20080406-2. Thanks, -- Tatsuya Kinoshita