hi all,

i'm using a utf-8 locale, which works very smoothly with mutt. there is one
thing, however, that i find a bit strange. if i add a (pseudo-)header Attach: to
an email message, mutt isn't able to find the file if the file path contains
non-ascii characters. instead, i get the following error message:

~/Ã?bungen DGS Gruppe.pdf: unable to attach file

the filename actually starts with Ü (U-umlaut), not with Ã?. it seems that mutt
treats the filename as iso-8859-1 rather than utf-8. (btw, my editor obviously
writes utf-8 encoded files, and the body of the message is treated properly by
mutt.)

the only iso-8856-1 related setting i have in my .muttrc is the following:

set assumed_charset = "iso-8859-15:iso-8859-1:utf-8"

unsetting assumed_charset gets rid of the problem. so this means that mutt reads
an Attach-header from a file it knows (or at least assumes correctly) to be
utf-8 encoded, but then checks assumed_charset to guess a charset for the file
path in the Attach-header.

wouldn't it make more sense in this case for mutt to just use the encoding of
the body text? after all, the header and body text are in the same file...

btw, i'm using edit_headers=yes, if that wasn't obvious. :-)

TIA

joost


-- 
Joost Kremers, PhD
University of Göttingen
Institute for German Philology
Käte-Hamburger-Weg 3
37073 Göttingen, Germany

Reply via email to