[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: downcase'ing wrt locale in smtpmail.el
From: |
Simon Josefsson |
Subject: |
Re: downcase'ing wrt locale in smtpmail.el |
Date: |
Mon, 14 Jan 2008 15:02:12 +0100 |
User-agent: |
Gnus/5.110007 (No Gnus v0.7) Emacs/22.1 (gnu/linux) |
Reiner Steib <address@hidden> writes:
> On Sat, Jan 12 2008, Simon Josefsson wrote:
>
>> address@hidden writes:
> [...]
>>> 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 ı (dotless i),
>>> not i. Therefore, comparison fails because of logın != login or plaın
>>> != plain. IMHO, downcased must be applied using en_US locale.
> [...]
>> 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?
>
> Chong Yidong has fixed some similar issues in smtpmail.el using
> with-case-table / ascii-case-table, see
> http://thread.gmane.org/gmane.emacs.gnus.general/64489/focus=64496
>
> See <http://thread.gmane.org/gmane.emacs.devel/68859> for the quite
> long discussion about this problem (Subject: ... Locale Dependent
> Downcasing in smtpmail). Oh, know I notice that
> <address@hidden> reported this problem, so I'd guess it has
> been fixed by Chong Yidong's change.
I'm happy to hear that it has already been fixed. I didn't notice any
follow-ups on the post to emacs-pretest, that's why I asked again.
Thanks,
/Simon