From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Daniel Hartwig Newsgroups: gmane.lisp.guile.bugs Subject: bug#10491: unread-char and eof Date: Fri, 13 Jan 2012 18:34:39 +0800 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1326450944 5717 80.91.229.12 (13 Jan 2012 10:35:44 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 13 Jan 2012 10:35:44 +0000 (UTC) Cc: 10491@debbugs.gnu.org To: Aleix Conchillo =?UTF-8?Q?Flaqu=C3=A9?= Original-X-From: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Fri Jan 13 11:35:38 2012 Return-path: Envelope-to: guile-bugs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1RleTx-0003rM-8G for guile-bugs@m.gmane.org; Fri, 13 Jan 2012 11:35:37 +0100 Original-Received: from localhost ([::1]:39928 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RleTw-0002LI-Mm for guile-bugs@m.gmane.org; Fri, 13 Jan 2012 05:35:36 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:39225) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RleTq-0002Kw-Jd for bug-guile@gnu.org; Fri, 13 Jan 2012 05:35:34 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RleTm-0007GP-8u for bug-guile@gnu.org; Fri, 13 Jan 2012 05:35:30 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:32966) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RleTm-0007GL-6m for bug-guile@gnu.org; Fri, 13 Jan 2012 05:35:26 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1RleUM-0005Rb-0x for bug-guile@gnu.org; Fri, 13 Jan 2012 05:36:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Daniel Hartwig Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-guile@gnu.org Resent-Date: Fri, 13 Jan 2012 10:36:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 10491 X-GNU-PR-Package: guile X-GNU-PR-Keywords: Original-Received: via spool by 10491-submit@debbugs.gnu.org id=B10491.132645092220881 (code B ref 10491); Fri, 13 Jan 2012 10:36:01 +0000 Original-Received: (at 10491) by debbugs.gnu.org; 13 Jan 2012 10:35:22 +0000 Original-Received: from localhost ([127.0.0.1]:55871 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1RleTh-0005Qj-6V for submit@debbugs.gnu.org; Fri, 13 Jan 2012 05:35:21 -0500 Original-Received: from mail-iy0-f172.google.com ([209.85.210.172]:35338) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1RleTc-0005QY-5k for 10491@debbugs.gnu.org; Fri, 13 Jan 2012 05:35:20 -0500 Original-Received: by iaae16 with SMTP id e16so3769642iaa.3 for <10491@debbugs.gnu.org>; Fri, 13 Jan 2012 02:34:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=+hlcORZRDr9ltKBDB5XJKPo9ABvTSmPVOATOgU0Tx3s=; b=UVkUP4OJDurv+J8xDmrXWaxVzhqgRfvca0hPwjBAXDfOdmsJUQjcF3cTcct11k0lDe 47R+sZBBun823stXZJQTr7sA5gajjkYMALuWV57WuCdMgOkuaWk9RWGxKSmCB/+nt7Ep PK/spgpKU8U6ySwyJia/y12iaoaZL8ThPwg9M= Original-Received: by 10.50.157.131 with SMTP id wm3mr284039igb.13.1326450879293; Fri, 13 Jan 2012 02:34:39 -0800 (PST) Original-Received: by 10.231.48.68 with HTTP; Fri, 13 Jan 2012 02:34:39 -0800 (PST) In-Reply-To: X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 140.186.70.43 X-BeenThere: bug-guile@gnu.org List-Id: "Bug reports for GUILE, GNU's Ubiquitous Extension Language" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Original-Sender: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.bugs:6037 Archived-At: On 13 January 2012 04:14, Aleix Conchillo Flaqu=C3=A9 wrote: > Whenever eof is reach in a port, a call to unread-char passing eof > triggers an error. I'm not sure what's the right behavior for this, > but I guess the way it is now is just as the user should be > responsible to check eof. The user should indeed be checking for this because eof is not a character, rather, a special value used to indicate that no more data is available on the port. This value is not read from the port, it does not make sense to unread it. > > A note in the documentation would help in any case. Suggestions welcome. Personally I find the documentation sufficiently clear on the usage of unread-char only accepting a character value and equally clear that an eof value is not a character.