[GH-ISSUE #406] copy/paste from konsole to MS Office applications messed up #318

Open
opened 2026-05-05 06:01:45 -06:00 by gitea-mirror · 2 comments
Owner

Originally created by @jjohnson42 on GitHub (Aug 20, 2019).
Original GitHub issue: https://github.com/debauchee/barrier/issues/406

Operating Systems

Server: Ubuntu 19.04

Client: Windows 10 1903

Barrier Version

git master

Steps to reproduce bug

Copy text from konsole

Attempt to paste to a microsoft office application.

For example, I select the word 'barriers' and paste and office gets:
猼慰瑳汹㵥昢湯⵴慦業祬洺湯獯慰散㸢猼慰瑳汹㵥挢汯牯⌺〰〰〰戻捡杫潲湵ⵤ潣潬㩲昣晦晦㭦㸢慢牲敩獲⼼灳湡㰾牢㰾猯慰㹮

Other info

If I comment out the attempt to do HTML, it dos not occur:

$ git diff
diff --git a/src/lib/platform/XWindowsClipboard.cpp b/src/lib/platform/XWindowsClipboard.cpp
index b2c17f96..15139eb5 100644
--- a/src/lib/platform/XWindowsClipboard.cpp
+++ b/src/lib/platform/XWindowsClipboard.cpp
@@ -82,8 +82,8 @@ XWindowsClipboard::XWindowsClipboard(IXWindowsImpl* impl, Display* display,
     }
 
     // add converters, most desired first
-    m_converters.push_back(new XWindowsClipboardHTMLConverter(m_display,
-                                "text/html"));
+//    m_converters.push_back(new XWindowsClipboardHTMLConverter(m_display,
+//                                "text/html"));
     m_converters.push_back(new XWindowsClipboardBMPConverter(m_display));
     m_converters.push_back(new XWindowsClipboardUTF8Converter(m_display,
                                 "text/plain;charset=UTF-8"));

If I use any terminal other than Konsole, it does not occur.

Originally created by @jjohnson42 on GitHub (Aug 20, 2019). Original GitHub issue: https://github.com/debauchee/barrier/issues/406 ### Operating Systems ### Server: Ubuntu 19.04 Client: Windows 10 1903 ### Barrier Version ### git master ### Steps to reproduce bug ### Copy text from *konsole* Attempt to paste to a microsoft office application. For example, I select the word 'barriers' and paste and office gets: 猼慰瑳汹㵥昢湯⵴慦業祬洺湯獯慰散㸢猼慰瑳汹㵥挢汯牯⌺〰〰〰戻捡杫潲湵ⵤ潣潬㩲昣晦晦㭦㸢慢牲敩獲⼼灳湡㰾牢㰾猯慰㹮 ### Other info ### If I comment out the attempt to do HTML, it dos not occur: ``` $ git diff diff --git a/src/lib/platform/XWindowsClipboard.cpp b/src/lib/platform/XWindowsClipboard.cpp index b2c17f96..15139eb5 100644 --- a/src/lib/platform/XWindowsClipboard.cpp +++ b/src/lib/platform/XWindowsClipboard.cpp @@ -82,8 +82,8 @@ XWindowsClipboard::XWindowsClipboard(IXWindowsImpl* impl, Display* display, } // add converters, most desired first - m_converters.push_back(new XWindowsClipboardHTMLConverter(m_display, - "text/html")); +// m_converters.push_back(new XWindowsClipboardHTMLConverter(m_display, +// "text/html")); m_converters.push_back(new XWindowsClipboardBMPConverter(m_display)); m_converters.push_back(new XWindowsClipboardUTF8Converter(m_display, "text/plain;charset=UTF-8")); ``` If I use any terminal other than Konsole, it does not occur.
gitea-mirror added the
bug
windows
linux
labels 2026-05-05 06:01:45 -06:00
Author
Owner

@piet8stevens commented on GitHub (Aug 25, 2019):

I have a similar problem with server 18.04 and client Windows 10 1903. It happens intermittently and also when copying from a browser on the server to a program like Word or Onenote on Windows 10. It does not happen when I paste into Notepad.

<!-- gh-comment-id:524614155 --> @piet8stevens commented on GitHub (Aug 25, 2019): I have a similar problem with server 18.04 and client Windows 10 1903. It happens intermittently and also when copying from a browser on the server to a program like Word or Onenote on Windows 10. It does not happen when I paste into Notepad.
Author
Owner

@shymega commented on GitHub (Aug 31, 2020):

Related to #860.

<!-- gh-comment-id:683520955 --> @shymega commented on GitHub (Aug 31, 2020): Related to #860.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: github-starred/barrier#318
No description provided.