also sprach Roderick Schertler <[email protected]> [2009.11.20.0241 +0100]:
> > Unfortunately, when I file-attach this file, it correctly determines
> > text/plain, but it doesn't set any encoding.
> 
> I'd have thought that the best way to deal with this is to state the
> encoding explicitly:
> 
>     --type "text/plain; charset=utf-8"
> 
> Are you suggesting it should be taken from the locale specified by the
> environment?  This seems rather fragile to me.  Is there a better way to
> do this?

It should be taken from the file. Unicode files start with 0xfeff or
some such. The 'file' tool uses that to determine whether a file is
multibyte or not.

-- 
 .''`.   martin f. krafft <[email protected]>      Related projects:
: :'  :  proud Debian developer               http://debiansystem.info
`. `'`   http://people.debian.org/~madduck    http://vcs-pkg.org
  `-  Debian - when you have better things to do than fixing systems
 
"the association on this web site and in peter chappell
 publications, articles and books, made between remedy and diseases
 is used for clarity, but is not the functional reality and does not
 imply these resonances treat any disease. they merely vitalise and
 inform the self healing system."
                                                   -- peter chappell

Attachment: digital_signature_gpg.asc
Description: Digital signature (see http://martin-krafft.net/gpg/)

Reply via email to