From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/88200 Path: news.gmane.org!.POSTED!not-for-mail From: =?utf-8?Q?Adam_Sj=C3=B8gren?= Newsgroups: gmane.emacs.gnus.general,gmane.emacs.devel Subject: Resending email in Gnus, figuring out charset Date: Mon, 29 Oct 2018 20:19:37 +0100 Organization: koldfront - analysis & revolution, Copenhagen, Denmark Message-ID: <87in1ktvau.fsf@tullinup.koldfront.dk> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: blaine.gmane.org 1540840721 26932 195.159.176.226 (29 Oct 2018 19:18:41 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 29 Oct 2018 19:18:41 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) Cc: emacs-devel@gnu.org To: ding@gnus.org Original-X-From: ding-owner+M36414@lists.math.uh.edu Mon Oct 29 20:18:37 2018 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from lists1.math.uh.edu ([129.7.128.208]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gHD3c-0006uc-Ph for ding-account@gmane.org; Mon, 29 Oct 2018 20:18:36 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by lists1.math.uh.edu with smtp (Exim 4.90_1) (envelope-from ) id 1gHD4z-00062j-W1; Mon, 29 Oct 2018 14:20:02 -0500 Original-Received: from mx1.math.uh.edu ([129.7.128.32]) by lists1.math.uh.edu with esmtps (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.90_1) (envelope-from ) id 1gHD4q-0005zZ-0F for ding@lists.math.uh.edu; Mon, 29 Oct 2018 14:19:52 -0500 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx1.math.uh.edu with esmtps (TLSv1.2:ECDHE-RSA-AES128-GCM-SHA256:128) (Exim 4.90_1) (envelope-from ) id 1gHD4n-0002CJ-Tx for ding@lists.math.uh.edu; Mon, 29 Oct 2018 14:19:51 -0500 Original-Received: from [195.159.176.226] (helo=blaine.gmane.org) by quimby.gnus.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gHD4m-0002Nu-MC for ding@gnus.org; Mon, 29 Oct 2018 20:19:48 +0100 Original-Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1gHD2f-0005il-6O for ding@gnus.org; Mon, 29 Oct 2018 20:17:37 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 47 Original-X-Complaints-To: usenet@blaine.gmane.org X-Face: )qY&CseJ?.:=8F#^~GcSA?F=9eu'{KAFfL1C3/A&:nE?PW\i65"ba0NS)97,Q(^@xk}n4Ou rPuR#V8I(J_@~H($[ym:`K_+]*kjvW>xH5jbgLBVFGXY:(#4P>zVBklLbdL&XxL\M)%T}3S/IS9lMJ ^St'=VZBR Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:88200 gmane.emacs.devel:230769 Archived-At: Hi, When I resend (S D r) an email in Gnus with headers like this: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit and utf-8 chars in the content (such as →, æ, ø and å), Gnus says it doesn't know what charset to use, and asks if if I want to send it as ASCII anyway. I've edebugged my way into the function mm-find-mime-charset-region in mm-util.el, which tries to figure out what charset the region is in. Unfortunately (raw-text no-conversion) is not something the function knows what to do with, and thus I get the prompt. I guess the utf-8-ification has outrun this function? I've applied the following hack locally, but I guess it isn't the correct solution? diff --git a/lisp/gnus/mm-util.el b/lisp/gnus/mm-util.el index 25b156803a..67682f8b7d 100644 --- a/lisp/gnus/mm-util.el +++ b/lisp/gnus/mm-util.el @@ -572,7 +572,8 @@ mm-find-mime-charset-region (while systems (let* ((head (pop systems)) (cs (or (coding-system-get head :mime-charset) - (coding-system-get head 'mime-charset)))) + (coding-system-get head 'mime-charset) + (if (eq head 'raw-text) 'utf-8 nil)))) ;; The mime-charset (`x-ctext') of ;; `compound-text' is not in the IANA list. We ;; shouldn't normally use anything here with a Best regards, Adam -- "Your editor, having been blissfully unaware of the Adam Sjøgren scourge of unnecessary calculators just waiting for asjo@koldfront.dk their opportunity to overwhelm his desktop, has not yet come to love the new way of doing things."