Problems with international characters in menus on Mac OSX

2006-03-10 Thread John Olsson

This bug report will be sent to the Free Software Foundation,
not to your local site managers!
Please write in English if possible, because the Emacs maintainers
usually do not have translators to read other languages for them.

Your bug report will be posted to the [EMAIL PROTECTED] mailing 
list and possibly to the gnu.emacs.bug news group.


Please describe exactly what actions triggered the bug
and the precise symptoms of the bug:


If I add a menu to the menu bar (or menu items to a menu) containing 
international characters (for instance any of the swedish characters 
'å', 'ä' and 'ö') they will not show up correctly.


For instance
'å' shows as Â
'ä' shows as '‰'
'ö' shows as '^'
'Å' shows as '≈'

In other parts of the Emacs window swedish characters shows correctly 
(buffers, status bar and mini buffer).



In earlier versions (21 and earlier) having international characters in 
menus caused Emacs to crash when any menu was selected. Fortunately 
Emacs does not crash any longer, but still the wrong characters are 
shown in the menus.



In GNU Emacs 22.0.50.1 (powerpc-apple-darwin7.9.0)
 of 2005-09-28 on lucy - Aquamacs Distribution 0.9.6
Distributor `Apple Computers', version 10.3.9
configured using `configure '--without-x' '--prefix=/usr/local''

Important settings:
  value of $LC_ALL: nil
  value of $LC_COLLATE: nil
  value of $LC_CTYPE: nil
  value of $LC_MESSAGES: nil
  value of $LC_MONETARY: nil
  value of $LC_NUMERIC: nil
  value of $LC_TIME: nil
  value of $LANG: nil
  locale-coding-system: iso-latin-1
  default-enable-multibyte-characters: t

Major mode: Text

Minor modes in effect:
  smart-frame-positioning-mode: t
  recentf-mode: t
  osx-key-mode: t
  mouse-wheel-mode: t
  show-paren-mode: t
  delete-selection-mode: t
  pc-selection-mode: t
  encoded-kbd-mode: t
  tool-bar-mode: t
  tooltip-mode: t
  auto-compression-mode: t
  menu-bar-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  unify-8859-on-encoding-mode: t
  utf-translate-cjk-mode: t
  column-number-mode: t
  line-number-mode: t
  transient-mark-mode: t

Recent input:



Recent messages:
Loading plugins ...
Loading /Applications/Aquamacs 
Emacs.app/Contents/Resources/site-lisp/site-start (source)...done

... done.
Loading ~/Library/Preferences/Aquamacs Emacs/customizations.el 
(source)...done

Loading url-parse...done
Loading url-methods...done
Loading url-cache...done
For a introduction to Aquamacs Emacs, type Apple-?.
Loading mail-utils...done
Get the new Aquamacs 0.9.8 from http://aquamacs.org [2 times]


___
emacs-pretest-bug mailing list
emacs-pretest-bug@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-pretest-bug


Re: Problems with international characters in menus on Mac OSX

2006-03-07 Thread Kenichi Handa
In article <[EMAIL PROTECTED]>, John Olsson <[EMAIL PROTECTED]> writes:

> If I add a menu to the menu bar (or menu items to a menu) containing 
> international characters (for instance any of the swedish characters 
> 'å', 'ä' and 'ö') they will not show up correctly.

> For instance
> 'å' shows as Â
> 'ä' shows as '‰'
> 'ö' shows as '^'
> 'Å' shows as '≈'
[...]
> In GNU Emacs 22.0.50.1 (powerpc-apple-darwin7.9.0)
>   of 2005-09-28 on lucy - Aquamacs Distribution 0.9.6

It seems that this is a problem specific to
powerpc-apple-darwin7.9.0.  On GNU/Linux with X Window
System, for instance, the following code works well;
i.e. clicking "Test" in menu bar shows "å ä ö Å" correctly
(in latin-1 language environment).

(define-key global-map [menu-bar test]
  (cons "Test" test-menu))
("Test" keymap "Test")
(define-key test-menu [test-insert]
  '(menu-item "å ä ö Å" (lambda () (interactive) (insert "å ä ö Å"

---
Kenichi Handa
[EMAIL PROTECTED]


___
emacs-pretest-bug mailing list
emacs-pretest-bug@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-pretest-bug


Re: Problems with international characters in menus on Mac OSX

2006-03-06 Thread Kenichi Handa
In article <[EMAIL PROTECTED]>, YAMAMOTO Mitsuharu <[EMAIL PROTECTED]> writes:

>> (define-key global-map [menu-bar test]
>> (cons "Test" test-menu))
>> ("Test" keymap "Test")
>> (define-key test-menu [test-insert]
>> '(menu-item "å ä ö Å" (lambda () (interactive) (insert "å ä ö Å"

> It also works on Mac OS X/Carbon.  (I suppose you have (setq test-menu
> (make-sparse-keymap "Test")) before the first expression.)

Ah, yes, I forgot to paste that part.  And also I mis-pasted
unnecessary part ("Test" keymap "Test") which is the return
value of the above define-key.  To summarize, what I tested
is this code:

(defvar test-menu (make-sparse-keymap "Test"))
(define-key global-map [menu-bar test]
  (cons "Test" test-menu))
(define-key test-menu [test-insert]
  '(menu-item "å ä ö Å" (lambda () (interactive) (insert "å ä ö Å"

> Maybe specific to Aquamacs 0.9.6?

I have no idea.

---
Kenichi Handa
[EMAIL PROTECTED]


___
emacs-pretest-bug mailing list
emacs-pretest-bug@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-pretest-bug


Re: Problems with international characters in menus on Mac OSX

2006-03-05 Thread YAMAMOTO Mitsuharu
> On Mon, 06 Mar 2006 11:55:44 +0900, Kenichi Handa <[EMAIL PROTECTED]> 
> said:

> In article <[EMAIL PROTECTED]>, John Olsson <[EMAIL PROTECTED]> writes:
>> If I add a menu to the menu bar (or menu items to a menu) containing 
>> international characters (for instance any of the swedish characters 
>> 'å', 'ä' and 'ö') they will not show up correctly.

>> For instance
>> 'å' shows as Â
>> 'ä' shows as '‰'
>> 'ö' shows as '^'
>> 'Å' shows as '≈'
> [...]
>> In GNU Emacs 22.0.50.1 (powerpc-apple-darwin7.9.0)
>> of 2005-09-28 on lucy - Aquamacs Distribution 0.9.6

> It seems that this is a problem specific to
> powerpc-apple-darwin7.9.0.  On GNU/Linux with X Window
> System, for instance, the following code works well;
> i.e. clicking "Test" in menu bar shows "å ä ö Å" correctly
> (in latin-1 language environment).

> (define-key global-map [menu-bar test]
>   (cons "Test" test-menu))
> ("Test" keymap "Test")
> (define-key test-menu [test-insert]
>   '(menu-item "å ä ö Å" (lambda () (interactive) (insert "å ä ö Å"

It also works on Mac OS X/Carbon.  (I suppose you have (setq test-menu
(make-sparse-keymap "Test")) before the first expression.)  Maybe
specific to Aquamacs 0.9.6?

 YAMAMOTO Mitsuharu
[EMAIL PROTECTED]


___
emacs-pretest-bug mailing list
emacs-pretest-bug@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-pretest-bug