From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: [davidsmith@acm.org: [patch] url-hexify-string does not follow W3C spec] Date: Tue, 01 Aug 2006 11:54:57 -0400 Message-ID: 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 1154447780 23794 80.91.229.2 (1 Aug 2006 15:56:20 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 1 Aug 2006 15:56:20 +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 17:56:16 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 1G7wbI-00009R-7F for ged-emacs-devel@m.gmane.org; Tue, 01 Aug 2006 17:56:09 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1G7wbH-0004rx-6M for ged-emacs-devel@m.gmane.org; Tue, 01 Aug 2006 11:56:07 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1G7waI-0003wI-G1 for emacs-devel@gnu.org; Tue, 01 Aug 2006 11:55:06 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1G7waH-0003tx-A8 for emacs-devel@gnu.org; Tue, 01 Aug 2006 11:55:05 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1G7waG-0003tT-V3 for emacs-devel@gnu.org; Tue, 01 Aug 2006 11:55:05 -0400 Original-Received: from [209.226.175.25] (helo=tomts5-srv.bellnexxia.net) by monty-python.gnu.org with esmtp (Exim 4.52) id 1G7wd8-0003tW-LJ; Tue, 01 Aug 2006 11:58:02 -0400 Original-Received: from localhost ([70.55.146.253]) by tomts5-srv.bellnexxia.net (InterMail vM.5.01.06.13 201-253-122-130-113-20050324) with ESMTP id <20060801155459.FTBQ18394.tomts5-srv.bellnexxia.net@localhost>; Tue, 1 Aug 2006 11:54:59 -0400 Original-Received: by localhost (Postfix, from userid 20848) id 5EF506B1D9; Tue, 1 Aug 2006 11:54:57 -0400 (EDT) Original-To: David Kastrup In-Reply-To: <85k65sxzcq.fsf@lola.goethe.zz> (David Kastrup's message of "Tue, 01 Aug 2006 17:14:13 +0200") 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:57940 Archived-At: >>> (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 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. Stefan