unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Simon Josefsson <simon@josefsson.org>
To: yazicivo@ttnet.net.tr
Cc: emacs-pretest-bug@gnu.org, emacs-snapshot@packages.debian.org
Subject: Re: downcase'ing wrt locale in smtpmail.el
Date: Mon, 14 Jan 2008 15:02:12 +0100	[thread overview]
Message-ID: <874pdg5wuz.fsf@mocca.josefsson.org> (raw)
In-Reply-To: <v9ir1ztdjp.fsf@marauder.physik.uni-ulm.de> (Reiner Steib's message of "Sat, 12 Jan 2008 13:48:42 +0100")

Reiner Steib <reinersteib+gmane@imap.cc> writes:

> On Sat, Jan 12 2008, Simon Josefsson wrote:
>
>> yazicivo@ttnet.net.tr 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
> <yazicivo@ttnet.net.tr> 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

  reply	other threads:[~2008-01-14 14:02 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <87ps6t71t9.fsf@ttnet.net.tr>
2008-01-12 10:39 ` downcase'ing wrt locale in smtpmail.el Simon Josefsson
2008-01-12 12:48   ` Reiner Steib
2008-01-14 14:02     ` Simon Josefsson [this message]
2008-01-13  8:34   ` Richard Stallman

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=874pdg5wuz.fsf@mocca.josefsson.org \
    --to=simon@josefsson.org \
    --cc=emacs-pretest-bug@gnu.org \
    --cc=emacs-snapshot@packages.debian.org \
    --cc=yazicivo@ttnet.net.tr \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).