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: Re: tmm.el: non-ASCII characters with locale-coding-system Date: Thu, 17 Apr 2008 01:15:29 +0900 (JST) Message-ID: <20080417.011529.240672663.tats%nobody@tats.iris.ne.jp> References: <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 1208363977 14216 80.91.229.12 (16 Apr 2008 16:39:37 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 16 Apr 2008 16:39:37 +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 18:39:42 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 1JmAMn-0003cr-RV for ged-emacs-devel@m.gmane.org; Wed, 16 Apr 2008 18:20:14 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JmAM9-0008MW-4t for ged-emacs-devel@m.gmane.org; Wed, 16 Apr 2008 12:19:33 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JmALX-00088S-Po for emacs-devel@gnu.org; Wed, 16 Apr 2008 12:18:55 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JmALW-00086o-7F for emacs-devel@gnu.org; Wed, 16 Apr 2008 12:18:55 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JmALW-00086g-1g for emacs-devel@gnu.org; Wed, 16 Apr 2008 12:18:54 -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 1JmALV-0008FY-I2 for emacs-devel@gnu.org; Wed, 16 Apr 2008 12:18:54 -0400 Original-Received: from localhost (EM119-72-18-40.pool.e-mobile.ne.jp [119.72.18.40]) by smtp.vega.ocn.ne.jp (Postfix) with ESMTP id CC9B33E8B; Thu, 17 Apr 2008 01:18:47 +0900 (JST) In-Reply-To: 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:95358 Archived-At: On April 16, 2008 at 11:38AM -0400, monnier (at iro.umontreal.ca) wrote: > > 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. > > My guess is that if you try the same thing with a different locale, it > will fail, because the skk-mode for some reasons places utf-8 encoded > unibyte strings in the menu, so the if any decoding is needed it should > be with utf-8 rther than with locale-coding-system. Even if Emacs is invoked with LC_ALL=ja_JP.eucJP, the patch works nicely. Hmm, the encoding scheme is decided as follows, quoting from skk-e21.el: | (defvar skk-e21-coding-system (cond | ((memq window-system '(w32 nil)) | nil) | ((and (boundp 'mac-carbon-version-string) | window-system | (find-coding-system 'utf-8)) | 'utf-8) | (t | locale-coding-system))) Should it be set to 'utf-8? What's the correct way to handle a non-ASCII character of a menu item? Thanks, -- Tatsuya Kinoshita