Skip to content

Commit

Permalink
XWindowsClipboard: disable plain text converters to work-around encod…
Browse files Browse the repository at this point in the history
…ing issues with Unicode characters being replaced by question marks debauchee#344
  • Loading branch information
pdecat committed Mar 3, 2020
1 parent e8d7cd3 commit 41a64e1
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/lib/platform/XWindowsClipboard.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -93,10 +93,12 @@ XWindowsClipboard::XWindowsClipboard(IXWindowsImpl* impl, Display* display,
"text/plain;charset=ISO-10646-UCS-2"));
m_converters.push_back(new XWindowsClipboardUCS2Converter(m_display,
"text/unicode"));
m_converters.push_back(new XWindowsClipboardTextConverter(m_display,
"text/plain"));
m_converters.push_back(new XWindowsClipboardTextConverter(m_display,
"STRING"));

// Commenting these plain text converters resolves encoding issues with Unicode characters being replaced by question marks (#344)
// m_converters.push_back(new XWindowsClipboardTextConverter(m_display,
// "text/plain"));
// m_converters.push_back(new XWindowsClipboardTextConverter(m_display,
// "STRING"));

// we have no data
clearCache();
Expand Down

0 comments on commit 41a64e1

Please sign in to comment.