From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Simon Josefsson Newsgroups: gmane.emacs.devel,gmane.emacs.pretest.bugs Subject: Re: downcase'ing wrt locale in smtpmail.el Date: Sat, 12 Jan 2008 11:39:54 +0100 Message-ID: <87abnb8gzp.fsf@mocca.josefsson.org> References: <87ps6t71t9.fsf@ttnet.net.tr> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1200134422 6362 80.91.229.12 (12 Jan 2008 10:40:22 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 12 Jan 2008 10:40:22 +0000 (UTC) Cc: emacs-pretest-bug@gnu.org, emacs-snapshot@packages.debian.org To: yazicivo@ttnet.net.tr Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Jan 12 11:40:44 2008 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 1JDdn5-0005IR-Fw for ged-emacs-devel@m.gmane.org; Sat, 12 Jan 2008 11:40:39 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JDdmh-00028a-Ja for ged-emacs-devel@m.gmane.org; Sat, 12 Jan 2008 05:40:15 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JDdmc-00028J-C8 for emacs-devel@gnu.org; Sat, 12 Jan 2008 05:40:10 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JDdmZ-00027z-Eq for emacs-devel@gnu.org; Sat, 12 Jan 2008 05:40:09 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JDdmZ-00027w-9S for emacs-devel@gnu.org; Sat, 12 Jan 2008 05:40:07 -0500 Original-Received: from fencepost.gnu.org ([140.186.70.10]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JDdmY-0006Wx-Tx for emacs-devel@gnu.org; Sat, 12 Jan 2008 05:40:07 -0500 Original-Received: from mail.gnu.org ([199.232.76.166] helo=mx10.gnu.org) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1JDdmY-0005lZ-Dr for emacs-pretest-bug@gnu.org; Sat, 12 Jan 2008 05:40:06 -0500 Original-Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1JDdmS-0006Vz-Np for emacs-pretest-bug@gnu.org; Sat, 12 Jan 2008 05:40:03 -0500 Original-Received: from yxa.extundo.com ([83.241.177.38]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1JDdmS-0006VU-9T for emacs-pretest-bug@gnu.org; Sat, 12 Jan 2008 05:40:00 -0500 Original-Received: from mocca.josefsson.org (yxa.extundo.com [83.241.177.38]) (authenticated bits=0) by yxa.extundo.com (8.13.4/8.13.4/Debian-3sarge3) with ESMTP id m0CAdsXM020973 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sat, 12 Jan 2008 11:39:55 +0100 OpenPGP: id=B565716F; url=http://josefsson.org/key.txt X-Hashcash: 1:22:080112:emacs-snapshot@packages.debian.org::esS9fa4jrxy0Oyp4:2MQ4 X-Hashcash: 1:22:080112:yazicivo@ttnet.net.tr::LjOkrR5jcUbEl4QK:4rRb X-Hashcash: 1:22:080112:emacs-pretest-bug@gnu.org::WMurMF8LDwlpGXoP:VEx+ In-Reply-To: <87ps6t71t9.fsf@ttnet.net.tr> (yazicivo@ttnet.net.tr's message of "Wed, 28 Mar 2007 19:47:14 +0300") User-Agent: Gnus/5.110007 (No Gnus v0.7) Emacs/22.1 (gnu/linux) X-Virus-Scanned: ClamAV version 0.88.2, clamav-milter version 0.88.2 on yxa.extundo.com X-Virus-Status: Clean X-MIME-Autoconverted: from 8bit to quoted-printable by yxa.extundo.com id m0CAdsXM020973 X-detected-kernel: by monty-python.gnu.org: Linux 2.6, seldom 2.4 (older, 4) X-detected-kernel: by monty-python.gnu.org: Linux 2.6, seldom 2.4 (older, 4) 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:86773 gmane.emacs.pretest.bugs:20597 Archived-At: yazicivo@ttnet.net.tr writes: > Hi, > > In smtpmail.el, protocol messages are getting downcased with respect > to current locale. For instance, it downcases AUTH methods (LOGIN, > PLAIN, etc.) and then compares them with the related downcased symbols > '(login plain ...). And in Turkish, a downcased I is =C4=B1 (dotless i)= , > not i. Therefore, comparison fails because of log=C4=B1n !=3D login or = pla=C4=B1n > !=3D plain. IMHO, downcased must be applied using en_US locale. > > To reproduce the problem, start emacs with LC_CTYPE=3Dtr_TR prefix and > try to send a mail via smtpmail package. I just noticed this report. Is there a function in elisp that does downcase in the C locale? For this use, we only care about ASCII, so a 'tr A-Z a-z' would work. Do smtpmail.el have to implement a 'downcase-ascii' function itself? /Simon