Re: Windows port merge - Miscellaneos changes [PATCH]

From: Henrik Nordstrom <hno@dont-contact.us>
Date: 04 Feb 2003 15:47:56 +0100

tis 2003-02-04 klockan 12.48 skrev Guido Serassio:

> I have just found the reason of this:
> On Windows, when opening a file as O_TEXT, the resulting bytes count from a
> read() can be different from the real disk size.
> So errorTryLoadText() in errorpage.cc and netdbReloadState() in net_db.c
> doesn't work correctly.

This should be fixed in errorpage.cc to handle text files in text mode.

net_db.cc most likely should open the file in binary mode however as it
is a internal data file.

-- 
Henrik Nordstrom <hno@squid-cache.org>
MARA Systems AB, Sweden
Received on Tue Feb 04 2003 - 07:48:05 MST

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:19:13 MST