in System.ServiceModel.Web/System.Runtime.Serialization.Json:
commit31ed81efbfd3cffcc200cbf3cac34962c43c17c0
authorChris Toshok <toshok@novell.com>
Tue, 8 Dec 2009 04:56:50 +0000 (8 04:56 -0000)
committerChris Toshok <toshok@novell.com>
Tue, 8 Dec 2009 04:56:50 +0000 (8 04:56 -0000)
tree1ea94dda43c0269a62529824ec380a8ad9aefb51
parent04d595a6795c8df287b0ba2c4f3f8060e3b1bdf9
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=/branches/mono-2-6/mcs/; revision=147830
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