changeset 130:5490568de95e

- Fixed Decode_is_ascii()
author jcid
date Tue, 04 Mar 2008 13:06:07 +0100
parents 9665b773f95d
children 4208920f16a5
files src/decode.c
diffstat 1 files changed, 10 insertions(+), 10 deletions(-) [+]
line wrap: on
line diff
--- a/src/decode.c	Mon Mar 03 18:13:04 2008 +0100
+++ b/src/decode.c	Tue Mar 04 13:06:07 2008 +0100
@@ -273,16 +273,16 @@
  */
 static int Decode_is_ascii(const char *str)
 {
-   return (!(dStrcasecmp(str, "ASCII") ||
-             dStrcasecmp(str, "US-ASCII") ||
-             dStrcasecmp(str, "us") ||
-             dStrcasecmp(str, "IBM367") ||
-             dStrcasecmp(str, "cp367") ||
-             dStrcasecmp(str, "csASCII") ||
-             dStrcasecmp(str, "ANSI_X3.4-1968") ||
-             dStrcasecmp(str, "iso-ir-6") ||
-             dStrcasecmp(str, "ANSI_X3.4-1986") ||
-             dStrcasecmp(str, "ISO_646.irv:1991") ||
+   return (!(dStrcasecmp(str, "ASCII") &&
+             dStrcasecmp(str, "US-ASCII") &&
+             dStrcasecmp(str, "us") &&
+             dStrcasecmp(str, "IBM367") &&
+             dStrcasecmp(str, "cp367") &&
+             dStrcasecmp(str, "csASCII") &&
+             dStrcasecmp(str, "ANSI_X3.4-1968") &&
+             dStrcasecmp(str, "iso-ir-6") &&
+             dStrcasecmp(str, "ANSI_X3.4-1986") &&
+             dStrcasecmp(str, "ISO_646.irv:1991") &&
              dStrcasecmp(str, "ISO646-US")));
 }