[Mono-dev] [PATCH] System.Text.Encoding.GetEncoding compatibility fixes

Gert Driesen gert.driesen at telenet.be
Wed Jan 31 16:52:05 EST 2007


Hi,

The attached patch fixes some minor differences between our and MS'
Encoding.GetEncoding implementation.

* GetEncoding (int): do not allow codepage value below zero
and above 0xffff.
* GetEncoding (string): modified NotSupportedException to
ArgumentException when encoding is not supported

Both changes are covered by unit tests.

Let me know if it's ok to commit.

Gert

-------------- next part --------------
A non-text attachment was scrubbed...
Name: encoding.diff
Type: text/x-patch
Size: 6053 bytes
Desc: not available
Url : http://lists.ximian.com/pipermail/mono-devel-list/attachments/20070131/5531986b/attachment.bin 


More information about the Mono-devel-list mailing list