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
diff options
context:
space:
mode:
authorEberhard Beilharz <eb1@sil.org>2017-02-09 20:07:33 +0300
committerMarek Safar <marek.safar@gmail.com>2017-02-10 13:39:09 +0300
commit82974a28da1d3b5107466e600c064e5faf5e2d95 (patch)
treebbaa5821b9f675cb136b67b66346f6b4cba8d529 /mcs/class/System.Windows.Forms
parent2ac4e6a5c8860c8a9a8429370463d959a65a089d (diff)
[swf] Fix pasting of Unicode text
Previously pasting of Unicode text, e.g. from LibreOffice, resulted in question marks being displayed. This fixes Xamarin-7359. Change-Id: I78ec4cb1bbbd0e14da91d06a6fc517bc5c91e135
Diffstat (limited to 'mcs/class/System.Windows.Forms')
-rw-r--r--mcs/class/System.Windows.Forms/System.Windows.Forms/XplatUIX11.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/mcs/class/System.Windows.Forms/System.Windows.Forms/XplatUIX11.cs b/mcs/class/System.Windows.Forms/System.Windows.Forms/XplatUIX11.cs
index 90fe714b33d..8f9f1ed0e75 100644
--- a/mcs/class/System.Windows.Forms/System.Windows.Forms/XplatUIX11.cs
+++ b/mcs/class/System.Windows.Forms/System.Windows.Forms/XplatUIX11.cs
@@ -2790,7 +2790,7 @@ namespace System.Windows.Forms {
//else if (format == "PenData" ) return 10;
//else if (format == "RiffAudio" ) return 11;
//else if (format == "WaveAudio" ) return 12;
- else if (format == "UnicodeText" ) return UTF16_STRING.ToInt32();
+ else if (format == "UnicodeText" ) return UTF8_STRING.ToInt32();
//else if (format == "EnhancedMetafile" ) return 14;
//else if (format == "FileDrop" ) return 15;
//else if (format == "Locale" ) return 16;