Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Mutt's internal pager and accented characters

74 views
Skip to first unread message

Emma Jane Hogbin

unread,
May 5, 2004, 12:40:07 AM5/5/04
to
Hi everyone,

I'm having a difficult time of this one...I can read accented characters
when I reply to a message (ISO-8859-15), but I cannot view them.

according to /usr/share/doc/mutt/README.Debian
l10n support
~~~~~~~~~~~~
If you want to see non-ASCII characters on a Debian system, there's no
use fiddling with the variable "charset", as described in the manual
page muttrc(5).
Instead, you'll need to have the Debian package "locales" installed on
your system and set the LANG or LC_CTYPE environment variable.
e.g. US users will want to add "export LC_CTYPE=en_US" to their ~/.bashrc.
If you have a /etc/locale.gen file read carefully the comment and do
what it says, or it will not work.
No, linux systems do not need --enable-locales-fix or --without-wc-funcs,
so don't bother me saying these switches cure your problems.
---------

But I've tried setting the LC_CTYPE="fr_FR@euro ISO-8859-15" to no avail.

I read through this thread but wasn't able to find a solution. I know the
thread is 3 years old, but I'm having the same problems they were having.
http://lists.debian.org/debian-user/2001/10/msg00866.html

My mutt is the latest unstable. I can read accents only on a "reply", I
cannot read them in the pager. If I switch the pager to less, the accents
appear, but I want the standard pager that leaves a few messages at the
top.

thanks for your suggestions!
emma


I have the following locales set:
smeagol:~ 00:31:29 $ locale -a
C
POSIX
fr_CA
fr_CA.iso88591
fr_CA.utf8
fr_FR
fr_FR.iso88591
fr_FR.iso885915@euro
fr_FR.utf8
fr_FR.utf8@euro
fr_FR@euro
français
french
smeagol:~ 00:31:40 $ locale
LANG=fr_FR
LC_CTYPE="C"
LC_NUMERIC="C"
LC_TIME="C"
LC_COLLATE="C"
LC_MONETARY="C"
LC_MESSAGES="C"
LC_PAPER="C"
LC_NAME="C"
LC_ADDRESS="C"
LC_TELEPHONE="C"
LC_MEASUREMENT="C"
LC_IDENTIFICATION="C"
LC_ALL=C

--
Emma Jane Hogbin
[[ 416 417 2868 ][ www.xtrinsic.com ]]

Colin Watson

unread,
May 5, 2004, 7:10:11 AM5/5/04
to
On Wed, May 05, 2004 at 12:34:43AM -0400, Emma Jane Hogbin wrote:
> I'm having a difficult time of this one...I can read accented characters
> when I reply to a message (ISO-8859-15), but I cannot view them.

I find it simplest by far to run mutt in a UTF-8 locale, at which point
it can deal with accented characters from a wide range of languages
without me having to intervene further. You'll need a terminal emulator
that can cope (I have personal experience of pterm and uxterm) and a
suitable font (your terminal emulator may or may not sort this out for
you; with pterm it's easiest to pick a font).

> according to /usr/share/doc/mutt/README.Debian
> l10n support
> ~~~~~~~~~~~~
> If you want to see non-ASCII characters on a Debian system, there's no
> use fiddling with the variable "charset", as described in the manual
> page muttrc(5).
> Instead, you'll need to have the Debian package "locales" installed on
> your system and set the LANG or LC_CTYPE environment variable.
> e.g. US users will want to add "export LC_CTYPE=en_US" to their ~/.bashrc.
> If you have a /etc/locale.gen file read carefully the comment and do
> what it says, or it will not work.
> No, linux systems do not need --enable-locales-fix or --without-wc-funcs,
> so don't bother me saying these switches cure your problems.
> ---------
>
> But I've tried setting the LC_CTYPE="fr_FR@euro ISO-8859-15" to no avail.

That's not a legal value for LC_CTYPE, incidentally;
LC_CTYPE=fr_FR.ISO-8859-15 would be better, or (if you take my approach)
LC_CTYPE=fr_FR.UTF-8 for Unicode.

--
Colin Watson [cjwa...@flatline.org.uk]


--
To UNSUBSCRIBE, email to debian-us...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org

Emma Jane Hogbin

unread,
May 6, 2004, 2:20:11 PM5/6/04
to
On Wed, May 05, 2004 at 11:53:33AM +0100, Colin Watson wrote:
> I find it simplest by far to run mutt in a UTF-8 locale, at which point
> it can deal with accented characters from a wide range of languages
> without me having to intervene further. You'll need a terminal emulator
> that can cope (I have personal experience of pterm and uxterm) and a
> suitable font (your terminal emulator may or may not sort this out for
> you; with pterm it's easiest to pick a font).

Regardless of whether I'm using pterm or Eterm switching to UTF-8 does
not solve any problems. In fact it CREATES more problems! Setting mutt to:
set charset="utf-8"
gives me a capital A with a ~ on top instead of correctly mapping as lower
case a with an accent grave on top.

> > according to /usr/share/doc/mutt/README.Debian
<snip>


> > But I've tried setting the LC_CTYPE="fr_FR@euro ISO-8859-15" to no avail.
>
> That's not a legal value for LC_CTYPE, incidentally;
> LC_CTYPE=fr_FR.ISO-8859-15 would be better, or (if you take my approach)
> LC_CTYPE=fr_FR.UTF-8 for Unicode.

Where would I get legal values for LC_CTYPE? The instructions said to read
my /etc/locale.gen file and what I have is definitely listed there.
fr_CA ISO-8859-1
fr_CA.UTF-8 UTF-8
fr_FR ISO-8859-1
fr_FR.UTF-8 UTF-8
fr_FR.UTF-8@euro UTF-8
fr_FR@euro ISO-8859-15

emma

--
Emma Jane Hogbin
[[ 416 417 2868 ][ www.xtrinsic.com ]]

Emma Jane Hogbin

unread,
May 6, 2004, 2:30:16 PM5/6/04
to
On Wed, May 05, 2004 at 12:34:43AM -0400, Emma Jane Hogbin wrote:
> But I've tried setting the LC_CTYPE="fr_FR@euro ISO-8859-15" to no avail.

I figured it out. From the /etc/locale.gen file choose only the part
BEFORE the space for the .bash_profile. In my case I use:
fr_FR@euro
and now Mutt's internal pager works correctly. Ultimately I didn't
actually have to make a change to the .muttrc file and I've removed the
charset settings that I had before.

emma

--
Emma Jane Hogbin
[[ 416 417 2868 ][ www.xtrinsic.com ]]

Colin Watson

unread,
May 6, 2004, 9:50:09 PM5/6/04
to
On Thu, May 06, 2004 at 02:11:11PM -0400, Emma Jane Hogbin wrote:
> On Wed, May 05, 2004 at 11:53:33AM +0100, Colin Watson wrote:
> > I find it simplest by far to run mutt in a UTF-8 locale, at which point
> > it can deal with accented characters from a wide range of languages
> > without me having to intervene further. You'll need a terminal emulator
> > that can cope (I have personal experience of pterm and uxterm) and a
> > suitable font (your terminal emulator may or may not sort this out for
> > you; with pterm it's easiest to pick a font).
>
> Regardless of whether I'm using pterm or Eterm switching to UTF-8 does
> not solve any problems. In fact it CREATES more problems! Setting mutt to:
> set charset="utf-8"
> gives me a capital A with a ~ on top instead of correctly mapping as lower
> case a with an accent grave on top.

I don't use 'set charset'; I simply make sure that the terminal is
running in UTF-8 mode and that my locale is UTF-8. mutt seems to just
work at that point.

> > > according to /usr/share/doc/mutt/README.Debian
> <snip>
> > > But I've tried setting the LC_CTYPE="fr_FR@euro ISO-8859-15" to no avail.
> >
> > That's not a legal value for LC_CTYPE, incidentally;
> > LC_CTYPE=fr_FR.ISO-8859-15 would be better, or (if you take my approach)
> > LC_CTYPE=fr_FR.UTF-8 for Unicode.
>
> Where would I get legal values for LC_CTYPE? The instructions said to read
> my /etc/locale.gen file and what I have is definitely listed there.
> fr_CA ISO-8859-1
> fr_CA.UTF-8 UTF-8
> fr_FR ISO-8859-1
> fr_FR.UTF-8 UTF-8
> fr_FR.UTF-8@euro UTF-8
> fr_FR@euro ISO-8859-15

The format of that file is <locale> <charset>. Entries in the left-hand
column should be legal LC_CTYPE values, although they're not the only
possible values.

--
Colin Watson [cjwa...@flatline.org.uk]

richard lyons

unread,
May 7, 2004, 6:30:16 AM5/7/04
to
On Thursday 06 May 2004 21:46, Colin Watson wrote:
> On Thu, May 06, 2004 at 02:11:11PM -0400, Emma Jane Hogbin wrote:
[...]

> > Where would I get legal values for LC_CTYPE? The instructions said to
> > read my /etc/locale.gen file and what I have is definitely listed there.
> > fr_CA ISO-8859-1
...
[...]

> The format of that file is <locale> <charset>. Entries in the left-hand
> column should be legal LC_CTYPE values, although they're not the only
> possible values.

Apropos, if slightly OT, where are the default locale settings kept? I've
always used KDE's tools to set up language, date format etc., and keyboard,
but now I'm not using KDE, I cannot find what file to edit.

--
richard

0 new messages