[Mono-list] [Fwd: [Mono-cvs-list] Mono CVS: mcs gonzalo]

Mike Kestner mkestner@speakeasy.net
02 Jul 2002 17:28:35 -0500

Content-Type: text/plain
Content-Transfer-Encoding: 7bit

I think this change is incorrect.  

If the stream is not seekable, there is no way to back up from the peek,
and peek is not supposed to consume. Besides, the MS docs on the method
explicitly state that -1 is supposed to be returned if Peek is called on
a non-seekable stream.


Content-Disposition: inline
Content-Description: Forwarded message - [Mono-cvs-list] Mono CVS: mcs
Content-Type: message/rfc822

Return-Path: <mono-cvs-list-admin@ximian.com>
Delivered-To: mkestner@speakeasy.net
Received: (qmail 919 invoked from network); 2 Jul 2002 18:19:30 -0000
Received: from unknown (HELO trna.ximian.com) ([])
	(envelope-sender <mono-cvs-list-admin@ximian.com>) by mail12.speakeasy.net
	(qmail-ldap-1.03) with SMTP for <mkestner@speakeasy.net>; 2 Jul 2002
	18:19:30 -0000
Received: from trna.ximian.com (localhost []) by trna.ximian.com
	(8.11.6/8.11.6) with ESMTP id g62HRW308779; Tue, 2 Jul 2002 13:27:32 -0400
Received: from mono-cvs.ximian.com (mono-cvs.ximian.com []) by
	trna.ximian.com (8.11.6/8.11.6) with ESMTP id g62HRR308715 for
	<mono-cvs-list@ximian.com>; Tue, 2 Jul 2002 13:27:27 -0400
Received: (from gonzalo@localhost) by mono-cvs.ximian.com (8.11.6/8.11.6)
	id g62IHrk11177; Tue, 2 Jul 2002 14:17:53 -0400
Date: Tue, 2 Jul 2002 14:17:53 -0400
From: Gonzalo Paniagua <gonzalo@mono-cvs.ximian.com>
Message-Id: <200207021817.g62IHrk11177@mono-cvs.ximian.com>
To: mono-cvs-list@ximian.com
Reply-To: ops@ximian.com
X-CVS-Module: mcs
Subject: [Mono-cvs-list] Mono CVS: mcs gonzalo
Sender: mono-cvs-list-admin@ximian.com
Errors-To: mono-cvs-list-admin@ximian.com
X-Mailman-Version: 1.1
Precedence: bulk
List-Id: Track the CVS activity for Mono <mono-cvs-list.ximian.com>
X-BeenThere: mono-cvs-list@ximian.com
Mime-Version: 1.0

CVSROOT:	/cvs/public
Module name:	mcs
Changes by:	gonzalo	02/07/02 14:17:53

Modified files:
	class/corlib/System.IO: ChangeLog StreamReader.cs 

Log message:
2002-07-02  Gonzalo Paniagua Javier <gonzalo@ximian.com>

* StreamReader.cs:
(Peek): no need to have seek capabilitites.

Mono-cvs-list maillist  -  Mono-cvs-list@ximian.com