From 4891ab9bbe12c4a4961b8a5dfed04f95e3b03161 Mon Sep 17 00:00:00 2001 From: mycroft Date: Sat, 25 Nov 2000 22:43:28 +0000 Subject: Fix the htmlparser tests to work with unsigned characters. --- www/mozilla/files/patch-sum | 3 ++- www/mozilla/patches/patch-an | 31 +++++++++++++++++++++++++++++++ 2 files changed, 33 insertions(+), 1 deletion(-) create mode 100644 www/mozilla/patches/patch-an (limited to 'www/mozilla') diff --git a/www/mozilla/files/patch-sum b/www/mozilla/files/patch-sum index 4125af528ef..23d7b9e6dea 100644 --- a/www/mozilla/files/patch-sum +++ b/www/mozilla/files/patch-sum @@ -1,4 +1,4 @@ -$NetBSD: patch-sum,v 1.33 2000/11/15 04:53:35 martin Exp $ +$NetBSD: patch-sum,v 1.34 2000/11/25 22:43:28 mycroft Exp $ MD5 (patch-aa) = a07a4956a8c6a91fce0ef653b59c902f MD5 (patch-ab) = dfa8ac0ffaac96293904adb6372c5b8d @@ -13,3 +13,4 @@ MD5 (patch-aj) = dae5f7b6f80a833fd63721c5c751fe0b MD5 (patch-ak) = 287b726e245828a0ef5801a621573e09 MD5 (patch-al) = c84bb29314da78f57bbb72c9b9834dc6 MD5 (patch-am) = ae0011f145fee15042a104d9a67a7b44 +MD5 (patch-an) = d675e27cb5f6cd403aafab081b8e84c7 diff --git a/www/mozilla/patches/patch-an b/www/mozilla/patches/patch-an new file mode 100644 index 00000000000..a2f017db23e --- /dev/null +++ b/www/mozilla/patches/patch-an @@ -0,0 +1,31 @@ +$NetBSD: patch-an,v 1.3 2000/11/25 22:43:29 mycroft Exp $ + +--- htmlparser/tests/outsinks/Convert.cpp.orig Thu Aug 31 22:08:07 2000 ++++ htmlparser/tests/outsinks/Convert.cpp Sat Nov 25 22:39:07 2000 +@@ -66,12 +66,12 @@ + + // Inefficiently read from the file: + nsString inString; +- char c; ++ int c; + int index = 0; + int different = 0; + while ((c = getc(file)) != EOF) + { +- inString.AppendWithConversion(c); ++ inString.AppendWithConversion((char) c); + // CVS isn't doing newline comparisons on these files for some reason. + // So compensate for possible newline problems in the CVS file: + if (c == '\n' && str[index] == '\r') +@@ -277,9 +277,9 @@ + + // Read in the string: very inefficient, but who cares? + nsString inString; +- char c; ++ int c; + while ((c = getc(file)) != EOF) +- inString.AppendWithConversion(c); ++ inString.AppendWithConversion((char) c); + + if (file != stdin) + fclose(file); -- cgit v1.2.3