From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/61654 Path: news.gmane.org!not-for-mail From: Katsumi Yamaoka Newsgroups: gmane.emacs.gnus.general Subject: Re: Where to complain? Date: Tue, 10 Jan 2006 18:36:16 +0900 Organization: Emacsen advocacy group Message-ID: References: <85u0cc7d4r.fsf@lola.goethe.zz> <85hd8c78rb.fsf@lola.goethe.zz> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1136886069 8905 80.91.229.2 (10 Jan 2006 09:41:09 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 10 Jan 2006 09:41:09 +0000 (UTC) Cc: ding@gnus.org Original-X-From: ding-owner+m10186@lists.math.uh.edu Tue Jan 10 10:40:59 2006 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from malifon.math.uh.edu ([129.7.128.13]) by ciao.gmane.org with esmtp (Exim 4.43) id 1EwFzg-0002np-On for ding-account@gmane.org; Tue, 10 Jan 2006 10:40:45 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu ident=lists) by malifon.math.uh.edu with smtp (Exim 3.20 #1) id 1EwFzV-00044J-00; Tue, 10 Jan 2006 03:40:33 -0600 Original-Received: from nas02.math.uh.edu ([129.7.128.40]) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 1EwFvY-000444-00 for ding@lists.math.uh.edu; Tue, 10 Jan 2006 03:36:28 -0600 Original-Received: from quimby.gnus.org ([80.91.224.244]) by nas02.math.uh.edu with esmtp (Exim 4.52) id 1EwFvU-0002CN-UC for ding@lists.math.uh.edu; Tue, 10 Jan 2006 03:36:28 -0600 Original-Received: from washington.hostforweb.net ([66.225.201.13]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1EwFvT-0005WV-00 for ; Tue, 10 Jan 2006 10:36:23 +0100 Original-Received: from [205.234.185.198] (port=50879 helo=mail.jpl.org) by washington.hostforweb.net with esmtpa (Exim 4.52) id 1EwFwd-0007Ns-Hd; Tue, 10 Jan 2006 03:37:35 -0600 Original-To: David Kastrup X-Face: #kKnN,xUnmKia.'[pp`;Omh}odZK)?7wQSl"4o04=EixTF+V[""w~iNbM9ZL+.b*_CxUmFk B#Fu[*?MZZH@IkN:!"\w%I_zt>[$nm7nQosZ<3eu;B:$Q_:p!',P.c0-_Cy[dz4oIpw0ESA^D*1Lw= L&i*6&( User-Agent: Gnus/5.110004 (No Gnus v0.4) Emacs/22.0.50 (gnu/linux) Cancel-Lock: sha1:gX3t0iH8VKnaQDciy2RxKJwij3Q= X-Hashcash: 1:20:060110:dak@gnu.org::zklZRBad2p3Jkmn4:0000004yQL X-Hashcash: 1:20:060110:ding@gnus.org::JZ8tH9WOvYcfqfK+:00009EVk X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - washington.hostforweb.net X-AntiAbuse: Original Domain - gnus.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - jpl.org X-Source: X-Source-Args: X-Source-Dir: X-Spam-Score: -2.6 (--) Precedence: bulk Original-Sender: ding-owner@lists.math.uh.edu Xref: news.gmane.org gmane.emacs.gnus.general:61654 Archived-At: >>>>> In <85hd8c78rb.fsf@lola.goethe.zz> David Kastrup wrote: > Katsumi Yamaoka writes: >> I don't know what does it, but such a behavior is performed by >> the HTML renderer specified in the `mm-text-html-renderer' >> variable; `w3m', `links' and `lynx' work fine, AFAIK. > w3m-standalone in my case, which would be the standard setting. So it > would appear that the character encoding (which is part of the MIME > part declaration) is not passed to w3m or something? > w3m alone used on web pages outside of Emacs appears to work. Maybe > something is wrong in mm-view.el? It would appear that the following > is responsible for the stuff: > (defun mm-inline-render-with-stdin (handle post-func cmd &rest args) > (let ((source (mm-get-part handle))) > (mm-insert-inline > handle > (mm-with-unibyte-buffer > (insert source) > (apply 'mm-inline-wash-with-stdin post-func cmd args) > (buffer-string))))) > Now what happens with the unibyte-buffer? Perhaps the > mm-inline-wash-with-stdin process filter is not too happy about > inserting w3m output in utf-8 (the current locale) into a unibyte > buffer? Or buffer-string, which likely happens to be unibyte decoded > into utf-8, then gets interpreted as latin-1, the encoding of the mime > part? Or w3m tries interpreting the latin-1 encoded input as utf-8? I see. That is just the point. When w3m is called by way of emacs-w3m (i.e., mm-text-html-renderer is set to `w3m'), w3m-input-coding-system and w3m-output-coding-system are used for exchanging data. > There seem many ways to get this wrong. When the locale and language > environment and part encoding are all latin-1, stuff works. The locale and the language environment are irrelevant, I think. We may need to make Gnus provide the following functions: mm-inline-text-html-render-with-w3m-standalone gnus-article-wash-html-with-w3m-standalone However, they will be complicated like emacs-w3m if ones want to make w3m-standalone work well like emacs-w3m. Why don't you use w3m? :)