From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/74274 Path: news.gmane.org!not-for-mail From: Sven Joachim Newsgroups: gmane.emacs.gnus.general Subject: Re: Garbled display of UTF-8 encoded mails Date: Tue, 23 Nov 2010 22:03:34 +0100 Message-ID: <87vd3neord.fsf@turtle.gmx.de> References: <874ob7g5r7.fsf@turtle.gmx.de> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: dough.gmane.org 1290546270 31464 80.91.229.12 (23 Nov 2010 21:04:30 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 23 Nov 2010 21:04:30 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M22639@lists.math.uh.edu Tue Nov 23 22:04:26 2010 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 1PL02J-0004w1-Dj for ding-account@gmane.org; Tue, 23 Nov 2010 22:04:23 +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 1PL028-0002zu-34; Tue, 23 Nov 2010 15:04:12 -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 1PL026-0002zi-Pp for ding@lists.math.uh.edu; Tue, 23 Nov 2010 15:04:10 -0600 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx2.math.uh.edu with esmtp (Exim 4.72) (envelope-from ) id 1PL021-0005b2-RM for ding@lists.math.uh.edu; Tue, 23 Nov 2010 15:04:10 -0600 Original-Received: from mailout-de.gmx.net ([213.165.64.22] helo=mail.gmx.net) by quimby.gnus.org with smtp (Exim 3.36 #1 (Debian)) id 1PL021-0001Zp-00 for ; Tue, 23 Nov 2010 22:04:05 +0100 Original-Received: (qmail invoked by alias); 23 Nov 2010 21:03:34 -0000 Original-Received: from p54862479.dip.t-dialin.net (EHLO turtle.gmx.de) [84.134.36.121] by mail.gmx.net (mp040) with SMTP; 23 Nov 2010 22:03:34 +0100 X-Authenticated: #28250155 X-Provags-ID: V01U2FsdGVkX1/5VG0WvUb5CLrIhuDFEzJHI4cAUSEcAvGrYeqRm3 Hji42y/zbmwQmu Original-Received: by turtle.gmx.de (Postfix, from userid 1000) id 6DD693F46A; Tue, 23 Nov 2010 22:03:34 +0100 (CET) Mail-Followup-To: ding@gnus.org In-Reply-To: <874ob7g5r7.fsf@turtle.gmx.de> (Sven Joachim's message of "Tue, 23 Nov 2010 21:11:08 +0100") User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/23.2.90 (gnu/linux) X-Y-GMX-Trusted: 0 X-Spam-Score: -1.9 (-) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:74274 Archived-At: On 2010-11-23 21:11 +0100, Sven Joachim wrote: > Hi, > > during the last weeks I encountered a problem viewing articles (mainly > mails) with non-ASCII characters, e.g. a German Umlaut "Ü" is displayed > as an octal digit, \334. This happens only if the message is encoded > like this: > > Content-Type: text/plain; charset=utf-8 > Content-Transfer-Encoding: 8bit > > It does not happen with charset=iso-8859-1 or Content-Transfer-Encoding: > quoted-printable (thus you cannot reproduce it with articles from > Gmane). Any idea what might have caused this? I bisected the problem and found out that commit bda3e8962a is the culprit: commit bda3e8962af0aee90144c3ae8c5360aa4c106d94 Author: Katsumi Yamaoka Date: Fri May 7 06:34:41 2010 +0000 * binhex.el (binhex-decode-region-internal) * dns.el (dns-read-string-name, dns-write, dns-read, dns-read-type) (dns-query) * nnweb.el (nnweb-gmane-search) * pgg-parse.el (pgg-parse-armor) * pgg.el (pgg-verify-region) * sha1.el (sha1-string-external) * uudecode.el (uudecode-decode-region-internal) * yenc.el (yenc-decode-region): Don't run set-buffer-multibyte for XEmacs. * gnus-art.el (gnus-article-browse-html-parts) * gnus-group.el (gnus-read-ephemeral-gmane-group) (gnus-read-ephemeral-bug-grou): Use mm-make-temp-file instead of make-temp-file. * gnus-dired.el (gnus-dired-mode): Bind gnus-dired-mode-hook, gnus-dired-mode-on-hook and gnus-dired-mode-off-hook for XEmacs when compiling. * gnus-ml.el (gnus-mailing-list-mode): Bind gnus-mailing-list-mode-hook, gnus-mailing-list-mode-on-hook and gnus-mailing-list-mode-off-hook for XEmacs when compiling. * gnus-salt.el (gnus-pick-mode): Bind gnus-pick-mode-on-hook and gnus-pick-mode-off-hook for XEmacs when compiling. (gnus-binary-mode): Bind gnus-binary-mode-on-hook and gnus-binary-mode-off-hook for XEmacs when compiling. * gnus-sum.el (gnus-summary-limit-strange-charsets-predicate): Return nil if char-charset is not available. * imap.el (imap-disable-multibyte) * sieve-manage.el (sieve-manage-disable-multibyte): Redefine them as a macro. * mm-url.el (mm-url-form-encode-xwfu): Use mm-encode-coding-string instead of encode-coding-string. * mm-util.el (mm-enable-multibyte, mm-disable-multibyte): Use (featurep 'xemacs) instead of mm-emacs-mule to switch function definitions. (mm-with-unibyte-current-buffer): Make it a progn macro for XEmacs. * lpath.el: Fbind delete-overlay and overlay-lists for XEmacs; bind temporary-file-directory for XEmacs; fbind make-temp-file, set-buffer-multibyte, string-as-multibyte and timer-set-function for XEmacs 21.4 and SXEmacs; bind timer-list for XEmacs 21.4 and SXEmacs; fbind char-charset and find-charset-region for non-Mule XEmacs; fbind decode-coding-region, decode-coding-string, detect-coding-region, encode-coding-region and encode-coding-string for XEmacs having no file-coding feature. I refrain from including the whole diff which is more than 500 lines and touches 20 files. :-/ Going to find out what exactly broke things tomorrow, unless somebody (Katsumi?) beats me to it. Sven