Bug 37467 - "No data is available for encoding 720" because Mono does not yet support codepage 720 for "System.Text.Encoding.GetEncoding(720)"
Summary: "No data is available for encoding 720" because Mono does not yet support cod...
Status: CONFIRMED
Alias: None
Product: Class Libraries
Classification: Mono
Component: mscorlib (show other bugs)
Version: 4.2.0 (C6)
Hardware: PC All
: --- enhancement
Target Milestone: Future Release
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2016-01-07 03:06 UTC by Brendan Zagaeski (Xamarin Team, assistant)
Modified: 2018-01-10 12:34 UTC (History)
4 users (show)

Tags:
Is this bug a regression?: ---
Last known good build:


Attachments
Test case (301 bytes, application/octet-stream)
2016-01-07 03:06 UTC, Brendan Zagaeski (Xamarin Team, assistant)
Details


Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report for Bug 37467 on GitHub or Developer Community if you have new information to add and do not yet see a matching new report.

If the latest results still closely match this report, you can use the original description:

  • Export the original title and description: GitHub Markdown or Developer Community HTML
  • Copy the title and description into the new report. Adjust them to be up-to-date if needed.
  • Add your new information.

In special cases on GitHub you might also want the comments: GitHub Markdown with public comments

Related Links:
Status:
CONFIRMED

Description Brendan Zagaeski (Xamarin Team, assistant) 2016-01-07 03:06:26 UTC
Created attachment 14474 [details]
Test case

"No data is available for encoding 720" because Mono does not yet support codepage 720 for "System.Text.Encoding.GetEncoding(720)"




## Regression status: not a regression

BAD: Mono 4.2.2  (explicit/7b87787)
BAD: Mono 4.0.5  (detached/1d8d582)
BAD: Mono 3.12.1 (detached/0849ec7)




## Steps to replicate

Attempt to run the following line in Mono:

> System.Text.Encoding.GetEncoding(720)




## Result

> $ csharp 
> Mono C# Shell, type "help;" for help
> 
> Enter statements below.
> csharp> System.Text.Encoding.GetEncoding(720)
> System.NotSupportedException: No data is available for encoding 720.
>   at System.Text.Encoding.GetEncoding (Int32 codepage) [0x00000] in <filename unknown>:0 
>   at <InteractiveExpressionClass>.Host (System.Object& $retval) [0x00000] in <filename unknown>:0 
>   at Mono.CSharp.Evaluator.Evaluate (System.String input, System.Object& result, System.Boolean& result_set) [0x00000] in <filename unknown>:0 
>   at Mono.CSharpShell.Evaluate (System.String input) [0x00000] in <filename unknown>:0 




## Result with .NET on Windows

System.Text.Encoding.GetEncoding(720) returns without error:

> System.Text.SBCSCodePageEncoding
Comment 1 Brendan Zagaeski (Xamarin Team, assistant) 2016-01-07 03:12:27 UTC
This is quite similar to Bug 31588, but for a different encoding.
Comment 2 Brendan Zagaeski (Xamarin Team, assistant) 2016-01-07 03:12:49 UTC
*** Bug 37465 has been marked as a duplicate of this bug. ***
Comment 3 Marek Safar 2018-01-10 12:30:27 UTC

*** This bug has been marked as a duplicate of bug 54665 ***