locale is ignored for displaying text (no charset conversion)?

This is a discussion on locale is ignored for displaying text (no charset conversion)? within the Mutt forums in Other Technologies category; It seems that mutt is ignoring the locale setting when displaying text: My terminals have native ISO-8859-1 (latin1) and locale is set properly. But mails with a different character set are not converted into ISO-8859-1 when displaying. For example, UTF-8 is displayed binary and not in ISO-8859-1. This looks like: From: framstag@rus.uni-stuttgart.de To: framstag@rus.uni-stuttgart.de Subject: F*EX-upload: zzA Date: Wed, 2 Jul 2008 19:18:44 +0200 (CEST) framstag has uploaded the file "zzA (2009 kB) for you. The relevant headers of this mail are: Subject: F*EX-upload: =?UTF-8?Q?zz=C3=A4=C3=BC=C3=9F=C2=A0zz?= Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable This mail should be displayed as: From: framstag@rus.uni-stuttgart.de To: framstag@rus.uni-stuttgart.de ...

Go Back   Application Development Forum > Other Technologies > Mutt

Object Mix

Register FAQ Calendar Search Today's Posts Mark Forums Read
  #1  
Old 07-03-2008, 03:10 AM
Ulli Horlacher
Guest
 
Default locale is ignored for displaying text (no charset conversion)?


It seems that mutt is ignoring the locale setting when displaying text:

My terminals have native ISO-8859-1 (latin1) and locale is set properly.
But mails with a different character set are not converted into ISO-8859-1
when displaying. For example, UTF-8 is displayed binary and not in
ISO-8859-1. This looks like:

From: framstag@rus.uni-stuttgart.de
To: framstag@rus.uni-stuttgart.de
Subject: F*EX-upload: zzA Date: Wed, 2 Jul 2008 19:18:44 +0200 (CEST)

framstag has uploaded the file
"zzA (2009 kB) for you.

The relevant headers of this mail are:

Subject: F*EX-upload: =?UTF-8?Q?zz=C3=A4=C3=BC=C3=9F=C2=A0zz?=
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

This mail should be displayed as:

From: framstag@rus.uni-stuttgart.de
To: framstag@rus.uni-stuttgart.de
Subject: F*EX-upload: zzäüß*zz
Date: Wed, 2 Jul 2008 19:18:44 +0200 (CEST)

framstag has uploaded the file
"zzäüß*zz"
(2009 kB) for you.


My setup is:

Mutt 1.5.18 (2008-05-17)
System: Linux 2.6.24-18-generic (i686)
ncurses: ncurses 5.6.20071124 (compiled with 5.6)
Compile options:
(...)
-ENABLE_NLS -LOCALES_HACK +HAVE_WC_FUNCS +HAVE_LANGINFO_CODESET +HAVE_LANGINFO_YESEXPR
+HAVE_ICONV -ICONV_NONTRANS -HAVE_LIBIDN +HAVE_GETSID -USE_HCACHE

framstag@fex:/sw/src/mutt-1.5.18: locale | grep LC_CTYPE
LC_CTYPE="en_US"

framstag@fex:/sw/src/mutt-1.5.18: locale -k LC_CTYPE | grep charmap
charmap="ISO-8859-1"


--
Ullrich Horlacher Informationssysteme und Serverbetrieb
Rechenzentrum E-Mail: horlacher@rus.uni-stuttgart.de
Universitaet Stuttgart Tel: ++49-711-685-65868
Allmandring 30 Fax: ++49-711-682357
70550 Stuttgart (Germany) WWW: http://www.rus.uni-stuttgart.de/
Reply With Quote
  #2  
Old 07-03-2008, 03:13 AM
Erwan David
Guest
 
Default Re: locale is ignored for displaying text (no charset conversion)?

Ulli Horlacher <framstag@rus.uni-stuttgart.de> disait le 07/03/08 que :

> It seems that mutt is ignoring the locale setting when displaying text:
>
> My terminals have native ISO-8859-1 (latin1) and locale is set properly.
> But mails with a different character set are not converted into ISO-8859-1
> when displaying. For example, UTF-8 is displayed binary and not in
> ISO-8859-1. This looks like:


>
> Mutt 1.5.18 (2008-05-17)
> System: Linux 2.6.24-18-generic (i686)
> ncurses: ncurses 5.6.20071124 (compiled with 5.6)
> Compile options:
> (...)
> -ENABLE_NLS -LOCALES_HACK +HAVE_WC_FUNCS +HAVE_LANGINFO_CODESET +HAVE_LANGINFO_YESEXPR
> +HAVE_ICONV -ICONV_NONTRANS -HAVE_LIBIDN +HAVE_GETSID -USE_HCACHE


recompile with +ENABLE_NLS (is it not the default ?)

--
Le travail n'est pas une bonne chose. Si ça l'était,
les riches l'auraient accaparé
Reply With Quote
  #3  
Old 07-03-2008, 03:34 AM
Ulli Horlacher
Guest
 
Default Re: locale is ignored for displaying text (no charset conversion)?

Erwan David <erwan@rail.eu.org> wrote:

> recompile with +ENABLE_NLS (is it not the default ?)


Ok, I have now:

framstag@fex:/sw/src/mutt-1.5.18: ./mutt -v | grep NLS
+ENABLE_NLS -LOCALES_HACK +HAVE_WC_FUNCS +HAVE_LANGINFO_CODESET +HAVE_LANGINFO_YESEXPR

but this does not help. The UTF chars are still displayed binary and not
converted to ISO-8859-1.


--
Ullrich Horlacher Informationssysteme und Serverbetrieb
Rechenzentrum E-Mail: horlacher@rus.uni-stuttgart.de
Universitaet Stuttgart Tel: ++49-711-685-65868
Allmandring 30 Fax: ++49-711-682357
70550 Stuttgart (Germany) WWW: http://www.rus.uni-stuttgart.de/
Reply With Quote
  #4  
Old 07-03-2008, 04:37 AM
Christian Ebert
Guest
 
Default Re: locale is ignored for displaying text (no charset conversion)?

* Ulli Horlacher on Thursday, July 03, 2008:
> Erwan David <erwan@rail.eu.org> wrote:
>> recompile with +ENABLE_NLS (is it not the default ?)


--enable-nls only sets status/error messages etc. to your
language; unrelated to the problem.

> Ok, I have now:
>
> framstag@fex:/sw/src/mutt-1.5.18: ./mutt -v | grep NLS
> +ENABLE_NLS -LOCALES_HACK +HAVE_WC_FUNCS +HAVE_LANGINFO_CODESET +HAVE_LANGINFO_YESEXPR
>
> but this does not help. The UTF chars are still displayed binary and not
> converted to ISO-8859-1.


What gives:

:set ?charset

at the Mutt command-line?

c
--
Was heißt hier Dogma, ich bin Underdogma!
[ What the hell do you mean dogma, I am underdogma. ]

_F R E E_ _V I D E O S_ -->> http://www.blacktrash.org/underdogma/
Reply With Quote
  #5  
Old 07-03-2008, 05:41 AM
Ulli Horlacher
Guest
 
Default Re: locale is ignored for displaying text (no charset conversion)?

Christian Ebert <blacktrash@gmx.net> wrote:

> > but this does not help. The UTF chars are still displayed binary and not
> > converted to ISO-8859-1.

>
> What gives:
>
> :set ?charset
>
> at the Mutt command-line?


charset="iso-8859-1"

--
Ullrich Horlacher Informationssysteme und Serverbetrieb
Rechenzentrum E-Mail: horlacher@rus.uni-stuttgart.de
Universitaet Stuttgart Tel: ++49-711-685-65868
Allmandring 30 Fax: ++49-711-682357
70550 Stuttgart (Germany) WWW: http://www.rus.uni-stuttgart.de/
Reply With Quote
  #6  
Old 07-03-2008, 07:54 AM
Christian Ebert
Guest
 
Default Re: locale is ignored for displaying text (no charset conversion)?

* Ulli Horlacher on Thursday, July 03, 2008:
> Christian Ebert <blacktrash@gmx.net> wrote:
>> What gives:
>>
>> :set ?charset
>>
>> at the Mutt command-line?

>
> charset="iso-8859-1"


I'm at a loss of an explanation then because the headers you
quoted seemed to be ok, ie. no need for $assumed_charset etc.
Sorry for not being of much help.

c
--
Was heißt hier Dogma, ich bin Underdogma!
[ What the hell do you mean dogma, I am underdogma. ]

_F R E E_ _V I D E O S_ -->> http://www.blacktrash.org/underdogma/
Reply With Quote
Reply


Thread Tools
Display Modes


All times are GMT -5. The time now is 12:32 AM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
vB Ad Management by =RedTyger=

In an effort to better serve ads to our visitors, cookies are used on objectmix.com. For more information, check out our Privacy Policy.