From: Thomas Roessler Date: Thu, 26 Apr 2001 13:40:57 +0000 (+0000) Subject: Add a word of warning concerning the case problems. X-Git-Tag: mutt-1-3-18-rel~3 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1872cac5c1ceb9398921f4e2d5f63e0aab1d804f;p=mutt Add a word of warning concerning the case problems. --- diff --git a/BEWARE b/BEWARE new file mode 100644 index 00000000..d5a7df76 --- /dev/null +++ b/BEWARE @@ -0,0 +1,15 @@ +MUTT HACKERS BEWARE + +A word of warning about string comparisons: Since mutt may run in a +huge variety of locales, case-insensitive string comparisons and +case conversions may be dangerous. For instance, in iso-8859-9, +tolower('I') is DIFFERENT from 'i' - it's indeed the Turkish dotless +lowercase i. + +For this reason, always use the ascii_* functions defined in ascii.h +and implemented in ascii.c when comparing or handling strings whcih +are defined as us-ascii. This concerns lots of text-based +protocols, message header tags, character set names, domain names, +e-mail addresses, etc. + +Thu Apr 26 15:40:11 CEST 2001, diff --git a/Makefile.am b/Makefile.am index 7b1cbb85..18f671bc 100644 --- a/Makefile.am +++ b/Makefile.am @@ -75,7 +75,7 @@ non_us_sources = pgp.c pgpinvoke.c pgpkey.c pgplib.c sha1.c \ EXTRA_mutt_SOURCES = account.c md5c.c mutt_sasl.c mutt_socket.c mutt_ssl.c \ pop.c pop_auth.c pop_lib.c pgp.c pgpinvoke.c pgpkey.c pgplib.c \ sha1.c pgpmicalg.c gnupgparse.c resize.c dotlock.c remailer.c browser.h mbyte.h \ - remailer.h url.h mutt_ssl_nss.c pgppacket.c ascii.c + remailer.h url.h mutt_ssl_nss.c pgppacket.c EXTRA_DIST = COPYRIGHT GPL OPS OPS.PGP TODO configure acconfig.h account.h \ attach.h buffy.h charset.h copy.h dotlock.h functions.h gen_defs \ @@ -87,7 +87,7 @@ EXTRA_DIST = COPYRIGHT GPL OPS OPS.PGP TODO configure acconfig.h account.h \ _regex.h OPS.MIX README.SECURITY remailer.c remailer.h browser.h \ mbyte.h lib.h extlib.c pgpewrap pgplib.h Muttrc.head Muttrc \ makedoc.c stamp-doc-rc README.SSL README.UPGRADE checktypes.c \ - muttbug pgppacket.h depcomp ascii.h + muttbug pgppacket.h depcomp ascii.h BEWARE mutt_dotlock_SOURCES = mutt_dotlock.c mutt_dotlock_LDADD = @LIBOBJS@