Fix the htmlparser tests to work with unsigned characters.
This commit is contained in:
parent
7ccbf6d223
commit
52abccf3d9
2 changed files with 33 additions and 1 deletions
|
@ -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
|
||||
|
|
31
www/mozilla/patches/patch-an
Normal file
31
www/mozilla/patches/patch-an
Normal file
|
@ -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);
|
Loading…
Reference in a new issue