From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Kenichi Handa Newsgroups: gmane.emacs.devel Subject: Re: [yazicivo@ttnet.net.tr: Locale Dependent Downcasing in smtpmail] Date: Mon, 02 Apr 2007 15:51:14 +0900 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (generated by SEMI 1.14.3 - "Ushinoya") Content-Type: text/plain; charset=US-ASCII X-Trace: sea.gmane.org 1175496697 7636 80.91.229.12 (2 Apr 2007 06:51:37 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 2 Apr 2007 06:51:37 +0000 (UTC) Cc: yazicivo@ttnet.net.tr, emacs-devel@gnu.org To: rms@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Apr 02 08:51:30 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 1HYGO1-0007Er-V0 for ged-emacs-devel@m.gmane.org; Mon, 02 Apr 2007 08:51:30 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HYGR1-0002sn-T6 for ged-emacs-devel@m.gmane.org; Mon, 02 Apr 2007 02:54:35 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HYGQx-0002me-2Y for emacs-devel@gnu.org; Mon, 02 Apr 2007 02:54:31 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HYGQw-0002lL-2b for emacs-devel@gnu.org; Mon, 02 Apr 2007 02:54:30 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HYGQv-0002lE-Sb for emacs-devel@gnu.org; Mon, 02 Apr 2007 02:54:29 -0400 Original-Received: from mx1.aist.go.jp ([150.29.246.133]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1HYGNs-0003MI-2Y; Mon, 02 Apr 2007 02:51:20 -0400 Original-Received: from rqsmtp1.aist.go.jp (rqsmtp1.aist.go.jp [150.29.254.115]) by mx1.aist.go.jp with ESMTP id l326pFCh004401; Mon, 2 Apr 2007 15:51:15 +0900 (JST) env-from (handa@m17n.org) Original-Received: from smtp1.aist.go.jp by rqsmtp1.aist.go.jp with ESMTP id l326pFJi018273; Mon, 2 Apr 2007 15:51:15 +0900 (JST) env-from (handa@m17n.org) Original-Received: by smtp1.aist.go.jp with ESMTP id l326pEXj013526; Mon, 2 Apr 2007 15:51:14 +0900 (JST) env-from (handa@m17n.org) Original-Received: from handa by etlken.m17n.org with local (Exim 4.63) (envelope-from ) id 1HYGNm-0005JT-Oz; Mon, 02 Apr 2007 15:51:14 +0900 In-reply-to: (message from Richard Stallman on Sat, 31 Mar 2007 16:43:23 -0400) User-Agent: SEMI/1.14.3 (Ushinoya) FLIM/1.14.2 (Yagi-Nishiguchi) APEL/10.2 Emacs/22.0.95 (i686-pc-linux-gnu) MULE/5.0 (SAKAKI) X-detected-kernel: Solaris 8 (1) 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:68922 Archived-At: In article , Richard Stallman writes: > Would people please DTRT, then ack? > ------- Start of forwarded message ------- > X-Spam-Status: No, score=2.8 required=5.0 tests=DNS_FROM_RFC_ABUSE, > DNS_FROM_RFC_POST,DNS_FROM_RFC_WHOIS,SPF_PASS,UNPARSEABLE_RELAY > autolearn=no version=3.1.0 > From: Volkan YAZICI > To: bug-gnu-emacs@gnu.org > Date: Wed, 28 Mar 2007 00:37:21 +0300 > MIME-Version: 1.0 > Content-Type: text/plain; charset=utf-8 > Subject: Locale Dependent Downcasing in smtpmail > Hi, > smtpmail tries to downcase the strings using DOWNCASE function during > the SMTP communication. But this leads to some problems in some > locales. I spotted that problem when I tried to launch emacs with > LC_CTYPE=tr_TR locale. In Turkish, downcased I is a dotless i. > Therefore, while it tries to downcase some AUTH mechanisms (in > smtpmail-via-smtp function), PLAIN and LOGIN turns into pla?n and > log?n. And this causes (smtpmail-intersection smtpmail-auth-supported > mechs) to return nil in smtpmail-try-auth-methods function. 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)) ! (intern s)) (split-string (substring line 4) "[ ]")))) (and (eq (length name) 1) (setq name (car name)))