Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/mcs/class
diff options
context:
space:
mode:
authorKarl <contact@scowencomputers.co.nz>2020-01-21 00:04:57 +0300
committerKarl <contact@scowencomputers.co.nz>2020-01-21 00:04:57 +0300
commitff0605fe188b64004583ea9acd242e2536aa3acc (patch)
tree883c0eecc5d46c22d420c70b66ef20ae758487bd /mcs/class
parentd826bebd54552d0f7e1948a8e591b988cce6edb1 (diff)
Use correct default encoding.
Diffstat (limited to 'mcs/class')
-rw-r--r--mcs/class/System.Windows.Forms/System.Windows.Forms.RTF/CharsetToCodepage.cs3
1 files changed, 2 insertions, 1 deletions
diff --git a/mcs/class/System.Windows.Forms/System.Windows.Forms.RTF/CharsetToCodepage.cs b/mcs/class/System.Windows.Forms/System.Windows.Forms.RTF/CharsetToCodepage.cs
index 0d17c7d7891..783c6351007 100644
--- a/mcs/class/System.Windows.Forms/System.Windows.Forms.RTF/CharsetToCodepage.cs
+++ b/mcs/class/System.Windows.Forms/System.Windows.Forms.RTF/CharsetToCodepage.cs
@@ -30,13 +30,14 @@ namespace System.Windows.Forms.RTF {
public static int Translate(CharsetType charset)
{
switch (charset) {
- case CharsetType.ANSI:
case CharsetType.General:
case CharsetType.Arabic_Traditional:
case CharsetType.Arabic_user:
case CharsetType.Hebrew_user:
case CharsetType.Mac: // Technically wrong, because "mac" should actually be quite a few with their own code pages...
default:
+ return System.Text.Encoding.Default.CodePage;
+ case CharsetType.ANSI:
return 1252;
case CharsetType.Symbol:
return 42;