From: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: emacs-devel@gnu.org
Subject: Re: Non-ASCII in Lucid menus
Date: Wed, 16 Mar 2005 18:13:43 -0500 [thread overview]
Message-ID: <jwv7jk7tg55.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <4238A5D4.6090701@swipnet.se> (Jan D.'s message of "Wed, 16 Mar 2005 22:32:04 +0100")
>> In any case, here is the new improved patch. This new patch should also
>> enable non-ASCII in Motif menus, although I haven't actually checked it.
> I think you can have that already as long as your menu strings are in your
> locale. It works for me :-)
Actually, I doubt this is true because the encoding currently used is
"make_string_unibyte", which can only work for unibyte locales. This much
also already works with Lucid (no need for my patch here).
Hmmm... in the mean time I actually tried my patch with the Motif toolkit
and my claim fell on its face: At least with the lesstif version in "Debian
testing" the menus do not properly display unicode when the locale is
"fr_CH.UTF-8" (locale with which the Lucid menus do display unicode chars
correctly with my patch).
Actually, the precise behavior of the Motif menus in my test indicated that
the utf-8 decoding wasn't even taking place, and the 8-bit bytes of the ut-8
encoding were basically interpreted as latin-1. I tried to look at
lwlib-Xm.c to see where was the problem, but I really have even less of
a clue than for xlwmenu.c; maybe the problem is simply due to a limitation
in Lesstif, but I've also tried with OpenMotif-2.2.3 and it doesn't seem to
work any better. I also tried to fix my "fontList" specs (use semi-colons
to separate entreis, and add a colon terminator), but to no avail.
Actually it seems that Motif always assumes the string passed to it is
latin-1 (e.g. even in a greek locale, the greek chars (encoded by Emacs into
8bit chars before handing them off to Motif) end up displayed as latin-1
accented chars).
So my guess is that we do something wrong (Motif obviously supports more
than just latin-1), but we'd need a programmer familiar with Motif to help
us out.
Stefan
next prev parent reply other threads:[~2005-03-16 23:13 UTC|newest]
Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-03-12 23:47 Non-ASCII in Lucid menus Stefan Monnier
2005-03-13 11:06 ` Jan D.
2005-03-13 13:44 ` Stefan Monnier
2005-03-13 17:45 ` Jan D.
2005-03-14 20:23 ` Stefan Monnier
2005-03-14 20:56 ` Jan D.
2005-03-14 23:03 ` Miles Bader
2005-03-16 15:36 ` Stefan Monnier
2005-03-16 21:32 ` Jan D.
2005-03-16 23:13 ` Stefan Monnier [this message]
2005-03-16 23:38 ` Stefan Monnier
2005-03-17 7:12 ` Jan D.
2005-03-17 13:57 ` Stefan Monnier
2005-03-17 23:01 ` Richard Stallman
2005-03-18 4:32 ` Stefan Monnier
2005-03-18 18:20 ` Richard Stallman
2005-03-18 21:00 ` Stefan Monnier
2005-03-20 0:22 ` Richard Stallman
2005-03-20 0:50 ` Stefan Monnier
2005-03-20 3:21 ` David Kastrup
2005-03-20 11:46 ` Jan D.
2005-03-13 18:49 ` David Kastrup
2005-03-14 3:00 ` Richard Stallman
-- strict thread matches above, loose matches on Subject: below --
2005-03-18 21:26 Jan D.
2005-03-18 22:06 ` Stefan Monnier
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=jwv7jk7tg55.fsf-monnier+emacs@gnu.org \
--to=monnier@iro.umontreal.ca \
--cc=emacs-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.