From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: David Kastrup Newsgroups: gmane.emacs.devel Subject: Re: [davidsmith@acm.org: [patch] url-hexify-string does not follow W3C spec] Date: Tue, 01 Aug 2006 18:07:31 +0200 Message-ID: <8564hcxwvw.fsf@lola.goethe.zz> References: <44CDDF7A.8060404@gnu.org> <87lkq9ivgf.fsf@acm.org> <85k65sxzcq.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 1154448546 26707 80.91.229.2 (1 Aug 2006 16:09:06 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 1 Aug 2006 16:09:06 +0000 (UTC) Cc: David Smith , Thien-Thi Nguyen , Jason Rumney , YAMAMOTO Mitsuharu , emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Aug 01 18:09:02 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1G7wmv-0002gR-4c for ged-emacs-devel@m.gmane.org; Tue, 01 Aug 2006 18:08:09 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1G7wmu-0007Oi-Hb for ged-emacs-devel@m.gmane.org; Tue, 01 Aug 2006 12:08:08 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1G7wmS-0007C1-Pe for emacs-devel@gnu.org; Tue, 01 Aug 2006 12:07:40 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1G7wmS-0007BX-2O for emacs-devel@gnu.org; Tue, 01 Aug 2006 12:07:40 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1G7wmR-0007BF-SP for emacs-devel@gnu.org; Tue, 01 Aug 2006 12:07:39 -0400 Original-Received: from [199.232.76.164] (helo=fencepost.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.52) id 1G7wpM-0005AP-Ng for emacs-devel@gnu.org; Tue, 01 Aug 2006 12:10:40 -0400 Original-Received: from localhost ([127.0.0.1] helo=lola.goethe.zz) by fencepost.gnu.org with esmtp (Exim 4.34) id 1G7wmQ-0004BI-QO; Tue, 01 Aug 2006 12:07:39 -0400 Original-Received: by lola.goethe.zz (Postfix, from userid 1002) id 960471CE3082; Tue, 1 Aug 2006 18:07:31 +0200 (CEST) Original-To: Stefan Monnier In-Reply-To: (Stefan Monnier's message of "Tue, 01 Aug 2006 11:54:57 -0400") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:57942 Archived-At: Stefan Monnier writes: >>>> (if (or (multibyte-string-p string) >>>> (not unibyte-as-is-p)) >>>> (encode-coding-string string 'utf-8 t) >>> >>> Encoding a unibyte string doesn't make any sense (IMHO it should >>> signal an error, and indeed in my locally hacked Emacs it does ;-). > >> It sounds to me like this would be a sensible setting, and we should >> have it before entering pretest: we would like to catch the cases >> where this happens. > > IIRC it breaks Gnus and fixing it requires non-trivial changes. But it sounds like absent of those changes it would be doubtful that Gnus actually does the correct thing. It is probably something which muddles through if there is enough accidental overlap between latin1, MULE encoding and other systems. > But maybe I'm confusing it with some other local change of mine > (e.g. maybe the problem is only that Gnus decodes multibyte text, > but not that it encodes unibyte strings). Try it. Probably easy to do using advice. But I am at the moment busy finishing something else. -- David Kastrup, Kriemhildstr. 15, 44793 Bochum