diff options
author | Karl <contact@scowencomputers.co.nz> | 2020-01-21 00:04:57 +0300 |
---|---|---|
committer | Karl <contact@scowencomputers.co.nz> | 2020-01-21 00:04:57 +0300 |
commit | ff0605fe188b64004583ea9acd242e2536aa3acc (patch) | |
tree | 883c0eecc5d46c22d420c70b66ef20ae758487bd /mcs | |
parent | d826bebd54552d0f7e1948a8e591b988cce6edb1 (diff) |
Use correct default encoding.
Diffstat (limited to 'mcs')
-rw-r--r-- | mcs/class/System.Windows.Forms/System.Windows.Forms.RTF/CharsetToCodepage.cs | 3 |
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; |