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: Tue, 03 Apr 2007 17:06:07 +0900 Message-ID: References: <87wt0uhee5.fsf@ttnet.net.tr> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (generated by SEMI 1.14.3 - "Ushinoya") Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1175587621 30703 80.91.229.12 (3 Apr 2007 08:07:01 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 3 Apr 2007 08:07:01 +0000 (UTC) Cc: rms@gnu.org, emacs-devel@gnu.org To: Volkan YAZICI Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Apr 03 10:06:55 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 1HYe2X-0001OY-If for ged-emacs-devel@m.gmane.org; Tue, 03 Apr 2007 10:06:54 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HYe5d-0004IE-Uu for ged-emacs-devel@m.gmane.org; Tue, 03 Apr 2007 04:10:05 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HYe5a-0004Hz-JB for emacs-devel@gnu.org; Tue, 03 Apr 2007 04:10:02 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HYe5Y-0004Hm-6a for emacs-devel@gnu.org; Tue, 03 Apr 2007 04:10:01 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HYe5X-0004Hh-W2 for emacs-devel@gnu.org; Tue, 03 Apr 2007 04:10:00 -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 1HYe2M-0001aJ-HK; Tue, 03 Apr 2007 04:06:43 -0400 Original-Received: from rqsmtp1.aist.go.jp (rqsmtp1.aist.go.jp [150.29.254.115]) by mx1.aist.go.jp with ESMTP id l33868di004970; Tue, 3 Apr 2007 17:06:13 +0900 (JST) env-from (handa@m17n.org) Original-Received: from smtp3.aist.go.jp by rqsmtp1.aist.go.jp with ESMTP id l33868f0014393; Tue, 3 Apr 2007 17:06:08 +0900 (JST) env-from (handa@m17n.org) Original-Received: by smtp3.aist.go.jp with ESMTP id l33867i1027682; Tue, 3 Apr 2007 17:06:07 +0900 (JST) env-from (handa@m17n.org) Original-Received: from handa by etlken.m17n.org with local (Exim 4.63) (envelope-from ) id 1HYe1n-0003e7-07; Tue, 03 Apr 2007 17:06:07 +0900 In-reply-to: <87wt0uhee5.fsf@ttnet.net.tr> (message from Volkan YAZICI on Mon, 02 Apr 2007 20:31:14 +0300) 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:68970 Archived-At: In article <87y7lahee5.fsf@ttnet.net.tr>, Volkan YAZICI writes: > > --- 691,704 ---- > > (>=3D (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 (/=3D (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? To avoid such an ad-hoc fix, I must know the purpose of downcasing here. Do we need just "tr A-Z a-z"? Or, do we have to downcase also non-ASCII chars? In the latter case, what to do with conversion from dotted-I to `i' in Turkish? Do we need such an advanced downcasing as "MASSE" -> "ma=DFe" for German? > 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. > ...) I also thought about such a thing at first, but the above questions rose, and unless I know clearly what to do, anything I do will be ad-hoc. So, I reached to the quite localized fix (also by considering that the release is near). --- Kenichi Handa handa@m17n.org