From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Volkan YAZICI Newsgroups: gmane.emacs.devel Subject: Re: [yazicivo@ttnet.net.tr: Locale Dependent Downcasing in smtpmail] Date: Mon, 02 Apr 2007 20:31:14 +0300 Message-ID: <87wt0uhee5.fsf@ttnet.net.tr> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1175584499 20938 80.91.229.12 (3 Apr 2007 07:14:59 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 3 Apr 2007 07:14:59 +0000 (UTC) Cc: rms@gnu.org, emacs-devel@gnu.org To: Kenichi Handa Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Apr 03 09:14:57 2007 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1HYdEG-0006ci-1o for ged-emacs-devel@m.gmane.org; Tue, 03 Apr 2007 09:14:56 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HYdHM-0003jf-D1 for ged-emacs-devel@m.gmane.org; Tue, 03 Apr 2007 03:18:08 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HYQPZ-0003ng-Gp for emacs-devel@gnu.org; Mon, 02 Apr 2007 13:33:45 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HYQPX-0003nT-TT for emacs-devel@gnu.org; Mon, 02 Apr 2007 13:33:44 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HYQPX-0003nQ-Lu for emacs-devel@gnu.org; Mon, 02 Apr 2007 13:33:43 -0400 Original-Received: from mail.ttnet.net.tr ([212.175.13.129] helo=fep05.ttnet.net.tr) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1HYQMS-0006H1-Ni; Mon, 02 Apr 2007 13:30:33 -0400 Original-Received: from (unknown [192.168.8.105]) by AVGW-I-6.ttnet.net.tr with smtp id 49eb_db68ec1c_e13f_11db_9534_0011433771ac; Mon, 02 Apr 2007 20:30:32 +0300 Original-Received: from alamut ([85.96.24.164]) by fep05.ttnet.net.tr with ESMTP id <20070402173031.JYED21243.fep05.ttnet.net.tr@alamut>; Mon, 2 Apr 2007 20:30:31 +0300 Original-Received: from (unknown [85.96.24.164]) by AVGW-I-2.ttnet.net.tr with smtp id 3f61_daad2108_e13f_11db_bec0_001422175ed8; Mon, 02 Apr 2007 20:30:30 +0300 In-Reply-To: Kenichi Handa's message of "Mon\, 02 Apr 2007 15\:51\:14 +0900" Original-Message-ID: <87y7lahee5.fsf@ttnet.net.tr> User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.96 (gnu/linux) X-NAI-Spam-Rules: 2 Rules triggered HEADER_MSGID_DOUBLE_I=0.5, BAYES_20=-0.5 X-detected-kernel: Linux 2.6, seldom 2.4 (older, 4) X-Mailman-Approved-At: Tue, 03 Apr 2007 03:18:05 -0400 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:68963 Kenichi Handa writes: > In article , Richard Stallman writes: > Does the attached change fix the problem? > > --- > Kenichi Handa > handa@m17n.org > > *** smtpmail.el 10 Feb 2007 16:30:14 +0900 1.91 > --- smtpmail.el 02 Apr 2007 15:49:05 +0900 > *************** > *** 691,697 **** > (>= (car response-code) 400)) > (throw 'done nil))) > (dolist (line (cdr (cdr response-code))) > ! (let ((name (mapcar (lambda (s) (intern (downcase s))) > (split-string (substring line 4) "[ ]")))) > (and (eq (length name) 1) > (setq name (car name))) > --- 691,704 ---- > (>= (car response-code) 400)) > (throw 'done nil))) > (dolist (line (cdr (cdr response-code))) > ! (let ((name (mapcar (lambda (s) > ! (setq s (downcase s)) > ! ;; If `I' is downcased to dotless-i, > ! ;; convert it to `i'. > ! (if (/= (downcase ?I) ?i) > ! (subst-char-in-string > ! (downcase ?I) ?i s t)) Such a fix is quite unfeasible. What do you think to do for other problematic characters as well? Introduce a new if-else clause for every one? I am not faimilar with introducing a new macro policy of emacs team but it'd probably be useful (handy?) to have something similar to this macro: (with-case-table 'ascii ;; Any call to DOWNCASE/UPCASE within this (dynamic?) scope will use ;; the case conversion table specified in the first argument of the ;; WITH-CASE-TABLE macro. ...) Regards.