[Mono-dev] [PATCH] System.Text.Encoding.GetEncoding compatibility fixes
atsushi at ximian.com
Thu Feb 1 07:44:04 EST 2007
(I've already approved the patch but) I had to revert part of it since
it broke the build. You can try to use non-Latin1 environment (e.g.
CP932) to see how it breaks mcs tree.
Gert Driesen wrote:
> 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.
More information about the Mono-devel-list