in System.ServiceModel.Web/System.Runtime.Serialization.Json:
authorChris Toshok <toshok@novell.com>
Tue, 8 Dec 2009 04:56:29 +0000 (04:56 -0000)
committerChris Toshok <toshok@novell.com>
Tue, 8 Dec 2009 04:56:29 +0000 (04:56 -0000)
commit729745883823b701b69dbbeb4a227ef712047a7a
tree9d2a58f8564a72af2b11c89a63bd0977db3063bf
parente0ed815540403bcb9335dc6aed4a815beadcedc4
in System.ServiceModel.Web/System.Runtime.Serialization.Json:
2009-12-07  Chris Toshok  <toshok@ximian.com>

* JsonReaderWriterFactory.cs (CreateJsonReader): pass null for the
encoding parameter instead of calling Detect.  The jsonreader's
PushbackReader will autodetect.
(Detect): remove.  a BufferedStream created from an unseekable
stream is itself unseekable, which makes it just as useless.  This
breaks netflix's isostore file parsing.

* JsonReader.cs (PushbackReader): add a ctor which doesn't take an
encoding, for the autodetecting reader case.  for this ctor, pass
true to StreamReader's ctor for detectEncodingFromByteOrderMarks.

svn path=/trunk/mcs/; revision=147829
mcs/class/System.ServiceModel.Web/System.Runtime.Serialization.Json/ChangeLog
mcs/class/System.ServiceModel.Web/System.Runtime.Serialization.Json/JsonReader.cs
mcs/class/System.ServiceModel.Web/System.Runtime.Serialization.Json/JsonReaderWriterFactory.cs