On Saturday, August 26, 2006 at 11:02:55 +0200, Kurt Roeckx wrote: > vim is set up to try utf-8 first, and if it fails fall back to > iso-8859-1.
This Vim smart charset auto-sensing is a great feature, outside of Mutt. For Mutt, by design, the $editor must be dumb, and use only the charset of the locale. People *can* run for years with auto-sensing enabled, it works OK most of the time. But in some scenarios it can fail, and happens to hide from user's eyes the symptoms of a real problem, in config, or in the replied mail. I generally recommend to disable auto-sensing in Vim when called by Mutt, by unsetting $fileencodings. But I don't know how it will interact with your specific $encoding and $termencoding settings. Perhaps will you be forced to hardcode $fileencodings=latin1. Feedback welcome please. Hardcoding any given charset is never very good, this should be let free to follow whatever is the current locale. But hey... > mutt would either auto detect that the file [saved by Vim] is in utf-8 No: Such auto-sensing is an heuristic, having a limited charsets palette, and possibility of wrong guess. In some other cases, it is very handy. In this case, a robust setting would be more adapted. > Setting my terminal really in utf-8 mode would solve all my problems, > the problem is that all the software I use currently does not support > that, so I keep my terminal in latin1 mode. Locale is an environment thing: Each process can have it's own. You can run Mutt in an UTF-8 terminal, other apps in a Latin-1 one. Set LANG depending on the terminal, or such, nothing complicated. You can even run 2 Mutts in 2 different terms simultaneously, if well configured. Bye! Alain. -- You know what I would like to do? COMPLY. I would LOVE to COMPLY. But, you know what, Pat? I don't know where the h_ll that frickin 2-dash stupid stinkin line is coming from, okay? Comply... Greg K. in « Scarface III -- The Return Of The Evil Sigdashes » -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]