https://bugs.kde.org/show_bug.cgi?id=430339

            Bug ID: 430339
           Summary: Clipboard gets two entries (one truncated) when KRDC
                    client is connected to a VNC server (Krfb)
           Product: krdc
           Version: 20.08
          Platform: Fedora RPMs
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: VNC
          Assignee: uwol...@kde.org
          Reporter: david.p.war...@gmail.com
  Target Milestone: ---

Created attachment 134051
  --> https://bugs.kde.org/attachment.cgi?id=134051&action=edit
Clipboard manager screenshot

SUMMARY
When KRDC is connected to a VNC server (running Krfb), copying text with
multibyte characters results in 2 clipboard entries, the topmost truncated.

STEPS TO REPRODUCE
1. Connect to a Krfb server using KRDC.
2. Copy some text containing multibyte characters.
3. Paste the text on the server (using the KRDC window).
4. Paste the text on the client.
5. View the clipboard manager.

OBSERVED RESULT
(3) The text is not truncated.
(4) The text is truncated.
(5) 2 copies of the text appear, one truncated.

EXPECTED RESULT
(3) The text is not truncated.
(4) The text is not truncated.
(5) 1 copy of the text should appear.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Linux 5.9.14-200.fc33.x86_64 x86_64
KDE Plasma Version: 5.20.4
KDE Frameworks Version: 5.76.0
Qt Version: 5.15.2

ADDITIONAL INFORMATION
RFC 6143* states that 'There is no way to transfer text outside the Latin-1
character set.', but in practice this works for me when using KRDC connected to
Krfb; it is the client that ends up having a problem.

The length of the second clipboard entry seems to be the length of the string
as if each character were 1 byte. For example,
五十音, "Fifty Sounds"
starts with three 3-byte characters, while the remaining 16 characters are
1-byte, giving a total of 19 characters and 25 bytes. The extra entry is
shortened by 6 characters:
五十音, "Fifty S

A slightly different problem manifests when copying a file to the clipboard -
again, two entries are present, the first being the file and the second being
the path to the file, e.g. 'file:///home/david/2020-12-14 Clipboard duplicate'.
Trying to paste the file brings up the 'Filename for clipboard content:'
dialog.

* https://tools.ietf.org/html/rfc6143

This doesn't seem to happen under Wayland.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to