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: Sat, 12 Jan 2008 11:39:54 +0100	[thread overview]
Message-ID: <87abnb8gzp.fsf@mocca.josefsson.org> (raw)
In-Reply-To: <87ps6t71t9.fsf@ttnet.net.tr> (yazicivo@ttnet.net.tr's message of "Wed, 28 Mar 2007 19:47:14 +0300")

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 ı (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.
>
> To reproduce the problem, start emacs with LC_CTYPE=tr_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

       reply	other threads:[~2008-01-12 10:39 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 ` Simon Josefsson [this message]
2008-01-12 12:48   ` downcase'ing wrt locale in smtpmail.el Reiner Steib
2008-01-14 14:02     ` Simon Josefsson
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=87abnb8gzp.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).