-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Clipboard content changes to Chinese characters #36
Comments
I apologize for the delay... This seems to be a weird one that I can't quite reproduce at first pass but I'll have a go with Plasma and Konsole in the near future. In the meantime, is there any way you could past the proper text and then the garbled text here? I'd want to see if there is some trivial misinterpration, or something much more broken going on. |
No worries, life happens to all of us ;-)
Copying I accidentally Googled that recently, and found debauchee/barrier#406 - it seems to be related to UTF-8. |
That's actually extremely useful; it seems to mostly resemble an imprudent attempt at reading UTF-8 as if it were UTF-16 when playing with iconv. Not sure how lossless that is going to be round trip but I've at least got some ideas to play with, so thank you. |
The solution seems to be to ignore anything but plain text to bypass the weird HTML conversion bugs as seen in the barrier issue. Does #39 fix it for you? |
It does, thanks! Few nits on the PR though. |
The ideal fix would be an upstream barrier fix for unicode, but for now this will solve #36 by paying attention to format 0 (plain text) rather than 1 (HTML).
The ideal fix would be an upstream barrier fix for unicode, but for now this will solve #36 by paying attention to format 0 (plain text) rather than 1 (HTML).
Thank you again. |
Running barrier 2.4.0 server on Gentoo KDE Plasma and Waynergy 855ea2a on Fedora 36 KDE Plasma, clipboard content copied on Gentoo changes to Chinese characters once I move the cursor from Gentoo to Fedora.
It does not happen when I copy text from Kate, so I initially suspected it's font related. However, the font I'm using in Konsole on Gentoo is Droid Sans Mono, which is also installed on the Fedora machine. Simply moving the cursor from the Gentoo host to the Fedora host and moving it back, is enough to alter the clipboard content.
The problem does not seem to occur when I'm copying text on the Fedora machine and paste it on the Gentoo machine.
This problem does not occur between the same Barrier server and a Barrier client on macOS, so I suspect this is a Waynergy issue.
Would appreciate any suggestions as right now I always have to copy text in app X, paste in Kate, copy again in Kate, then paste on the Fedora machine. Easy to forget and extremely frustrating when you do.
The text was updated successfully, but these errors were encountered: