From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Andy Moreton Newsgroups: gmane.emacs.bugs Subject: bug#35507: Gnus mojibakifies UTF-8 text/x-patch attachments from Thunderbird Date: Wed, 01 May 2019 16:45:28 +0100 Message-ID: References: <44a26585-7980-378c-9262-a567ddd3e617@cs.ucla.edu> <865zqv3tc2.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="175488"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (windows-nt) To: 35507@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed May 01 17:47:24 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hLrS5-000jT2-TZ for geb-bug-gnu-emacs@m.gmane.org; Wed, 01 May 2019 17:47:22 +0200 Original-Received: from localhost ([127.0.0.1]:33622 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hLrS4-0004rg-SD for geb-bug-gnu-emacs@m.gmane.org; Wed, 01 May 2019 11:47:20 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:38557) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hLrRp-0004ny-3Q for bug-gnu-emacs@gnu.org; Wed, 01 May 2019 11:47:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hLrRm-0007pH-1u for bug-gnu-emacs@gnu.org; Wed, 01 May 2019 11:47:05 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:59331) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hLrRl-0007nq-Ul for bug-gnu-emacs@gnu.org; Wed, 01 May 2019 11:47:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hLrRl-0006Bn-Kc; Wed, 01 May 2019 11:47:01 -0400 X-Loop: help-debbugs@gnu.org In-Reply-To: <44a26585-7980-378c-9262-a567ddd3e617@cs.ucla.edu> Resent-From: Andy Moreton Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org, bugs@gnus.org Resent-Date: Wed, 01 May 2019 15:47:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 35507 X-GNU-PR-Package: emacs,gnus X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.155672556123682 (code B ref -1); Wed, 01 May 2019 15:47:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 1 May 2019 15:46:01 +0000 Original-Received: from localhost ([127.0.0.1]:44637 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hLrQn-00069f-0i for submit@debbugs.gnu.org; Wed, 01 May 2019 11:46:01 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:52193) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hLrQl-00069S-1D for submit@debbugs.gnu.org; Wed, 01 May 2019 11:45:59 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:46211) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hLrQf-0006th-74 for submit@debbugs.gnu.org; Wed, 01 May 2019 11:45:53 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:38317) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hLrQb-0004Mk-UB for bug-gnu-emacs@gnu.org; Wed, 01 May 2019 11:45:53 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hLrQV-0006nE-8V for bug-gnu-emacs@gnu.org; Wed, 01 May 2019 11:45:46 -0400 Original-Received: from [195.159.176.226] (port=38458 helo=blaine.gmane.org) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hLrQP-0006jb-B2 for bug-gnu-emacs@gnu.org; Wed, 01 May 2019 11:45:38 -0400 Original-Received: from list by blaine.gmane.org with local (Exim 4.89) (envelope-from ) id 1hLrQL-000h1m-3T for bug-gnu-emacs@gnu.org; Wed, 01 May 2019 17:45:33 +0200 X-Injected-Via-Gmane: http://gmane.org/ Cancel-Lock: sha1:9jcTnlSizShY6JT/HNKAnnMebUU= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:158579 Archived-At: On Wed 01 May 2019, Robert Pluim wrote: >>>>>> On Wed, 01 May 2019 01:35:09 +0100, Andy Moreton said: > Andy> After a bit of experimenting, this minimal patch appears to > Andy> fix things. Should this also allow the user to choose the > Andy> charset if none is specified, or just hardwire it to utf-8 ? > > I think utf-8 is a good fallback if the message doesnʼt specify a > charset. Itʼs not going to produce any worse effects than what we have > now. Looking at this a bit more, the " *mm*" temp buffers produced when decoding the MIME parts all seems to have the right coding, so my previous patch looks wrong. The problem may be in `mm-display-inline-fontify' when it tries to choose a charset or coding system to display the MIME part inline. AndyM