]> granicus.if.org Git - mutt/commitdiff
Add a word of warning concerning the case problems.
authorThomas Roessler <roessler@does-not-exist.org>
Thu, 26 Apr 2001 13:40:57 +0000 (13:40 +0000)
committerThomas Roessler <roessler@does-not-exist.org>
Thu, 26 Apr 2001 13:40:57 +0000 (13:40 +0000)
BEWARE [new file with mode: 0644]
Makefile.am

diff --git a/BEWARE b/BEWARE
new file mode 100644 (file)
index 0000000..d5a7df7
--- /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, <roessler@does-not-exist.org>
index 7b1cbb85efda706e48bf77561d0d5b4438613e56..18f671bcbc451dabdf3f633788f7c5ea2ba03f72 100644 (file)
@@ -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@