reassign 470646 emacs22 22.1+1-3
retitle 470646 emacs22: tmm.el: non-ASCII characters in the menu turn into 
garbage in the Completions buffer
thanks

> > Package: ddskk
> > Version: 13.1-1
> > Severity: normal
> > Tags: l10n
> >
> >
> > Hi,
> >
> > On Emacs 22 with GTK+ interface, ddskk provides the "SKK" menu in
> > Japanese.  It looks okay on X.  However, when manipulating the menu with
> > keyboard via "M-`", users see the menu turned into garbage in the
> > Completion buffer and minibuffer.
[...]
> I wonder if `M-`' (tmm-menubar) supports a Japanese menu...
> 
> Anyway, I've just forwarded this bug to the DDSKK upstream.

The DDSKK upstream developer mentions that the bug is in Emacs'
tmm.el, which doesn't support non-ASCII characters encoded with
locale-coding-system.

A patch is available at
http://mail.ring.gr.jp/skk/200803/msg00009.html

--- 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) ?\-)

Thanks,
-- 
Tatsuya Kinoshita

Attachment: pgpSaWGPpe2Vv.pgp
Description: PGP signature

Reply via email to