From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/77020 Path: news.gmane.org!not-for-mail From: Hobbit Newsgroups: gmane.emacs.gnus.general Subject: Re: bug#8070: gnus damages attached file Date: Sun, 20 Feb 2011 16:03:56 +0200 Message-ID: <87tyfydcqb.fsf@myhost.localdomain> References: <871v34nwdn.fsf@myhost.localdomain> <87aahss3yu.fsf@gnus.org> <87hbbz6fg4.fsf@myhost.localdomain> <87vd0fpvzv.fsf@gnus.org> <874o7z662d.fsf@myhost.localdomain> <87d3mnk1sy.fsf@myhost.localdomain> <87ipwfo6as.fsf@gnus.org> <87pqqndppl.fsf@myhost.localdomain> <87ei73dlvx.fsf@myhost.localdomain> <874o7yeszz.fsf@myhost.localdomain> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1298251483 7181 80.91.229.12 (21 Feb 2011 01:24:43 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 21 Feb 2011 01:24:43 +0000 (UTC) Cc: bugs@gnus.org, ding@gnus.org To: Andreas Schwab Original-X-From: ding-owner+M25353@lists.math.uh.edu Mon Feb 21 02:24:39 2011 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from util0.math.uh.edu ([129.7.128.18]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PrKVx-0004rW-Fk for ding-account@gmane.org; Mon, 21 Feb 2011 02:24:37 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by util0.math.uh.edu with smtp (Exim 4.63) (envelope-from ) id 1PrKVw-0005jZ-9a; Sun, 20 Feb 2011 19:24:36 -0600 Original-Received: from mx2.math.uh.edu ([129.7.128.33]) by util0.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1Pr9qC-0001f6-6G for ding@lists.math.uh.edu; Sun, 20 Feb 2011 08:00:48 -0600 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx2.math.uh.edu with esmtp (Exim 4.72) (envelope-from ) id 1Pr9q8-0005hz-1n for ding@lists.math.uh.edu; Sun, 20 Feb 2011 08:00:47 -0600 Original-Received: from forward9.mail.yandex.net ([77.88.61.48]) by quimby.gnus.org with esmtp (Exim 4.72) (envelope-from ) id 1Pr9q6-0004Fz-Vi; Sun, 20 Feb 2011 15:00:43 +0100 Original-Received: from smtp6.mail.yandex.net (smtp6.mail.yandex.net [77.88.61.56]) by forward9.mail.yandex.net (Yandex) with ESMTP id 80800CE1984; Sun, 20 Feb 2011 17:00:37 +0300 (MSK) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1298210437; bh=HWa73UaldA5nEPckjScRIVxPXfRKJs7hFVs1FMjHHzU=; h=From:To:Cc:Subject:In-Reply-To:References:Date:Message-ID: MIME-Version:Content-Type:Content-Transfer-Encoding; b=ZKDdvohbfAyS7IP5TQ3ea9iGQ7vy5fj+SgkTSaUfaMgp/hQIIq0Qi1vbYI2yFjt1d 3zYJGtnaHwuZHjKaA6soGVxfMw0N0f9pzJ67Vc9FO8bQiPA59ev6Uj6+qRK90eOHeC Rv2vQ1wKl3reDAGOlE3qNZyGCUrmqmtDXiESpO6M= Original-Received: from myhost.localdomain (2-134-95-178.pool.ukrtel.net [178.95.134.2]) by smtp6.mail.yandex.net (Yandex) with ESMTPSA id D4D362A807F; Sun, 20 Feb 2011 17:00:36 +0300 (MSK) In-Reply-To: (Andreas Schwab's message of "Sun, 20 Feb 2011 14:41:49 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux) X-Spam-Score: 0.3 (/) X-Spam-Report: SpamAssassin (3.3.1 2010-03-16) analysis follows Bayesian score: 0.0001 Ham tokens: 0.000-1504--4648h-0s--0d--H*UA:Emacs, 0.000-1392--4301h-0s--0d--H*u:Emacs, 0.000-1340--4140h-0s--0d--H*UA:Gnus, 0.000-1339--4139h-0s--0d--H*u:Gnus, 0.000-1291--3991h-0s--0d--H*u:linux Spam tokens: 0.998-21188--184h-208605s--0d--UD:ru, 0.998-303--3h-2979s--0d--H*Ad:U*bugs, 0.987-1--0h-1s--0d--yandexru, 0.987-1--0h-1s--0d--UD:yandex.ru, 0.987-1--0h-1s--0d--H*r:Yandex Autolearn status: no 0.0 FREEMAIL_FROM Sender email is freemail (werehobbit[at]yandex.ru) 2.3 FSL_RU_URL URI: FSL_RU_URL -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0001] -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, low trust [77.88.61.48 listed in list.dnswl.org] List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:77020 Archived-At: Andreas Schwab writes: > If you send an arbitrary byte stream you send it as > application/octet-stream. Case closed. Okay. > > What's wrong with putting it in the charset declaration? > Gnus should ask an user what codepage to mention in the header. It shouldn't be some random guessing (often incorrect). >> I enclose two reports about that (from aforementioned thread): > > All I can see in the second attachment are two basically equivalent > files, one encoded in UTF-8 and one encoded in Latin-1. > localhost$ iconv -f cp1251 letter_before.txt =D1=80=D1=83=D1=81=D1=81=D0=BA=D0=B8=D0=B9 =D1=82=D0=B5=D0=BA=D1=81=D1=82 = =D0=B2 =D0=BA=D0=BF1251 <------- normal text localhost$ iconv -f cp1251 letter_after.txt=20 =D0=93=C2=B0=D0=93=D1=96=D0=93=C2=B1=D0=93=C2=B1=D0=93=D0=84=D0=93=D0=81=D0= =93=C2=A9 =D0=93=D0=86=D0=93=D2=90=D0=93=D0=84=D0=93=C2=B1=D0=93=D0=86 =D0= =93=D1=9E =D0=93=D0=84=D0=93=D0=871251 <---- gibberish localhost$ iconv -f UTF8 letter_after.txt -t iso-8859-1 |=20 iconv -f cp1251 =D1=80=D1=83=D1=81=D1=81=D0=BA=D0=B8=D0=B9 =D1=82=D0=B5=D0=BA=D1=81=D1=82 = =D0=B2 =D0=BA=D0=BF1251 <------ normal text File letter_after.txt isn't equivalent to letter_before.txt, because to read it I not only had to know it's codepage. I need to do some strange transformations to see normal text. That's not right and described in report #1. > The third attachment is missing vital information, so I cannot say > anything about it. What vital information?=20 Besides, do you mind answering to the third attachment directly (i. e. to news://news.gnus.org/gnus.gnus-bug thread 'bug#8070: gnus damages attached file', third message article in the thread (which I cited)?