El día Wednesday, October 06, 2010 a las 09:52:22AM -0500, Kyle Wheeler 
escribió:

> Well, of course it is. When mutt reads an email message, it reads it 
> into it's own local memory, transforms it into a form that is 
> convenient to think about (in this case, utf-8), and uses that to 
> display to the terminal. Thus, it's pretty obvious why mutt would use 
> that same source to write out files for vim. In other words, the file 
> is written in utf-8 characters; it is not written in latin1 characters 
> and then converted.

You are right, but only half way :-)
In parts it is written in ISO-8859-1

I found the reason. From .muttrc the $attribution was inserted as

        El día %d, %n escribió:\n"

but containing an ISO ó and later the UTF-8 á, which let vim convert the
file from ISO to UTF-8, doubling the real UTF-8 bytes; I disabled this
and now it is fine.

> But this is, I think, an irrelevant detail. The real point of the 
> matter is that the file is in UTF-8 encoding by the time vim gets it.
> 
> >g...@current:~> env | egrep 'LANG|LC_'
> >LANG=es_ES.UTF-8
> 
> Presumably, that's a valid LANG on your system. Just for giggles, make 
> sure. Run
> 
>      locale -a | grep en_ES

g...@current:~> locale -a | grep es_ES
es_ES.ISO8859-1
es_ES.ISO8859-15
es_ES.UTF-8

Thanks for following through the problem;

        matthias

-- 
Matthias Apitz
t +49-89-61308 351 - f +49-89-61308 399 - m +49-170-4527211
e <[email protected]> - w http://www.unixarea.de/

Reply via email to