From: "Evgeny M. Zubok" Subject: Re: bug#8070: gnus damages attached file Newsgroups: gnus.gnus-bug Date: Sun, 20 Feb 2011 13:41:40 +0300 Organization: Gnus News User Services I can confirm this strange behaviour. Gnus converts attachments from 8-bit coding system like cp1251 (viewing it as iso-8859-1 text) to utf-8. It seems to occur only with files that have MIME supertype "text". When I send README.doc with plain unibyte text in cp1251 simultaneously as "text/plain" (or "text/x-tex" for instance) and "application/msword" (or "application/octet-stream") it received differently: as "text/plain", "text/x-tex", etc. -rw-r--r-- 1 zubok zubok 9 Фев 20 12:56 README.doc -rw------- 1 zubok zubok 17 Фев 20 12:58 README1.doc.received ^^^ Raw mail: Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename=README.doc Content-Transfer-Encoding: base64 as "application/msword", "application/octet-stream" -rw-r--r-- 1 zubok zubok 9 Фев 20 12:56 README.doc -rw------- 1 zubok zubok 9 Фев 20 12:58 README2.doc.received ^^^ Raw mail: Content-Type: application/msword Content-Disposition: attachment; filename=README.doc Content-Transfer-Encoding: base64 Additional information ====================== Emacs 22.2.1, Gnus 5.11. Both from Debian. The variable mm-coding-system-priorities is nil by default. Relevant settings from ~/.emacs: (set-language-environment 'utf-8) (set-terminal-coding-system 'utf-8) (set-keyboard-coding-system 'utf-8) (set-selection-coding-system 'compound-text) (setq x-select-request-type '(UTF8_STRING COMPOUND_TEXT TEXT STRING)) (codepage-setup 1251) (codepage-setup 866) (define-coding-system-alias 'ibm866 'cp866) (define-coding-system-alias 'windows-1251 'cp1251) (define-coding-system-alias 'koi8-u 'koi8-r) (define-coding-system-alias 'utf8 'utf-8) Locale settings: $ locale LANG=ru_RU.UTF-8 LC_CTYPE="ru_RU.UTF-8" LC_NUMERIC="ru_RU.UTF-8" LC_TIME="ru_RU.UTF-8" LC_COLLATE="ru_RU.UTF-8" LC_MONETARY="ru_RU.UTF-8" LC_MESSAGES="ru_RU.UTF-8" LC_PAPER="ru_RU.UTF-8" LC_NAME="ru_RU.UTF-8" LC_ADDRESS="ru_RU.UTF-8" LC_TELEPHONE="ru_RU.UTF-8" LC_MEASUREMENT="ru_RU.UTF-8" LC_IDENTIFICATION="ru_RU.UTF-8" LC_ALL=