From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/66105 Path: news.gmane.org!not-for-mail From: Ivan Shmakov Newsgroups: gmane.emacs.gnus.general Subject: Re: rfc2045-encode-string: should signal an error on non-ASCII strings Date: Sat, 12 Jan 2008 00:07:49 +0600 Message-ID: References: Reply-To: Ivan Shmakov NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1200074894 10469 80.91.229.12 (11 Jan 2008 18:08:14 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 11 Jan 2008 18:08:14 +0000 (UTC) Cc: Ivan Shmakov To: ding@gnus.org Original-X-From: ding-owner+M14597@lists.math.uh.edu Fri Jan 11 19:08:33 2008 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.50) id 1JDOIt-0001OI-ST for ding-account@gmane.org; Fri, 11 Jan 2008 19:08:28 +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 1JDOIM-0004yX-8Q; Fri, 11 Jan 2008 12:07:54 -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 1JDOIL-0004yH-5R for ding@lists.math.uh.edu; Fri, 11 Jan 2008 12:07:53 -0600 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx2.math.uh.edu with esmtp (Exim 4.67) (envelope-from ) id 1JDOIK-0005Z5-5y for ding@lists.math.uh.edu; Fri, 11 Jan 2008 12:07:53 -0600 Original-Received: from ns.asu.ru ([82.179.20.33]) by quimby.gnus.org with smtp (Exim 3.35 #1 (Debian)) id 1JDOIK-0000Fm-00 for ; Fri, 11 Jan 2008 19:07:52 +0100 Original-Received: (qmail 25543 invoked by uid 1002); 11 Jan 2008 18:07:48 -0000 Original-Received: from theory.asu.ru (HELO th2.phys.asu.ru) (82.179.21.8) by ns.asu.ru with SMTP; 11 Jan 2008 18:07:48 -0000 Original-Received: from localhost ([127.0.0.1] helo=cherry.siamics.int) by th2.phys.asu.ru with esmtp (Exim 4.63) (envelope-from ) id 1JDOII-0007nU-28; Sat, 12 Jan 2008 00:07:50 +0600 In-Reply-To: (Katsumi Yamaoka's message of "Wed, 09 Jan 2008 08:04:59 +0900") User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/21.4 (gnu/linux) X-Spam-Score: -2.5 (--) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:66105 Archived-At: >>>>> Katsumi Yamaoka writes: >>>>> Ivan Shmakov wrote: >> Shouldn't `rfc2045-encode-string' signal an error in case either >> PARAM or VALUE contain non-ASCII characters? > Gnus doesn't use `rfc2045-encode-string' for non-ASCII characters. I > didn't find no Lisp module that uses it for non-ASCII characters in > the Emacs trunk either. Yes. Indeed, it was my old Emacs 21.4.1 to use it that way and produce the MIME output damaged quite badly as a consequence. However, shouldn't the error be signalled, so that some useful diagnostics be shown instead of producing garbage on output (on this certain garbage on input)? I guess, it's quite likely this library may get used by some other, not necessarily correct, code. (A wishlist priority item.)