From jan@swi.psy.uva.nl  Sun May  7 12:48:12 2000
Received: from gollem.swi.psy.uva.nl (root@gollem [145.18.152.30])
	by swi.psy.uva.nl (8.9.3/8.9.3) with ESMTP id MAA11764;
	Sun, 7 May 2000 12:48:12 +0200 (MET DST)
Received: (from jan@localhost)
	by gollem.swi.psy.uva.nl (8.9.3/8.9.3/SuSE Linux 8.9.3-0.1) id MAA07386;
	Sun, 7 May 2000 12:48:21 +0200
Date: Sun, 7 May 2000 12:48:21 +0200
Message-Id: <200005071048.MAA07386@gollem.swi.psy.uva.nl>
From: Jan Wielemaker <jan@swi.psy.uva.nl>
Subject: Re: end_of_file and get_char/2
To: =?iso-8859-1?Q?Jos=E9_Romildo_Malaquias?= <romildo@urano.iceb.ufop.br>,
        prolog@swi.psy.uva.nl
In-Reply-To: =?iso-8859-1?Q?Jos=E9_Romildo_Malaquias?='s message of Fri, 5 May 2000 12:01:27 -0300
Phone: +31 - 20 - 525 6121

> The problem is that get_file_contents is not terminating. When the
> stream is at the end, get_char is not unifying X with the atom
> end_of_file as described in the standard. Instead it is being
> unified to the character ÿ, and keeps reding this character forever,
> without seeing the end of the stream.

Thanks.  Please find the fix in

http://gollem.swi.psy.uva.nl/cgi-bin/pl-cvsweb/src/pl-fli.c?r1=1.57&r2=1.58

Which will appear in the 3.3.7 release.

	Regards --- Jan

