Clipboard transfer: Convert charset for non-UTF-8 peers

Bug #1077355 reported by mk
22
This bug affects 4 people
Affects Status Importance Assigned to Milestone
remmina (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

When copying text from a german WinXP machine, umlauts were dropped or replaced by \xffffffff depending on which text editor I locally pasted it into. When copying local text and pasting it remotely, umlauts were replaced by pairs of strange symbols, indicating they might have been UTF-8 encoded twice.

The first patch adds charset conversion functionality that can be activated by setting the environment variable REMMINA_VNC_REMOTE_CHARSET.
Tested successfully with Ubuntu 12.04.1 LTS, said WinXP peer and REMMINA_VNC_REMOTE_CHARSET="ISO-8859-15".

The second patch is a cargo-cult work-around to allow compiling on the test machine, and should be avoided or replaced by a better fix if possible.

The patches are based on the Remmina Git Repository at http://anonscm.debian.org/git/collab-maint/remmina.git / commit 321ee0a3ded65ae0c00e055f301adfb6c78cec04 .

Now that the patch works, aptitude reports "Package: remmina-plugin-vnc / State: not installed / Version: 1.0.0-1ubuntu6.1" but I'm not sure if the version number is of the original package with the bug or of the one that I compiled myself.

Revision history for this message
mk (mk.pmb) wrote :
Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) wrote :

The attachment "Enable clipboard charset conversion via environment variable" of this bug report has been identified as being a patch. The ubuntu-reviewers team has been subscribed to the bug report so that they can review the patch. In the event that this is in fact not a patch you can resolve this situation by removing the tag 'patch' from the bug report and editing the attachment so that it is not flagged as a patch. Additionally, if you are member of the ubuntu-reviewers team please also unsubscribe the team from this bug report.

[This is an automated message performed by a Launchpad user owned by Brian Murray. Please contact him regarding any issues with the action taken in this bug report.]

tags: added: patch
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in remmina (Ubuntu):
status: New → Confirmed
Revision history for this message
Xavier (xavier-depedro) wrote :

Will this patch work for rdp connections also?
I'm using remina from Ubuntu 14.04 64bit standard (Unity), to connect to a Windows 2003 server, and copy and paste, or typing directly in the remote windows computer, doesn't match properly the characters I typed in the keyboard.

E.g., I typed a letter with an accent (ú, è, ...), and they get written as "çu, çe...". And when copy-pasted, some weird characters are written. Keyboard seems to be properly detected, but chars are not right for this non ascii chars, so I presume the problem has to do with missing the appropriate charset conversion...

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.