The clipboard implementation in the Windows vncviewer does not handle 
non-ascii characters. This is true for the 4.0 and 4.1.1 version. This is 
because non-ascii chars are explicitly removed. Why? The patch below 
restores the vncviewer3 behaviour and solves our problem (cut and paste 
with Swedish chars).

diff -u -r1.1.1.1 Clipboard.cxx
--- rfb_win32/Clipboard.cxx     8 Oct 2004 09:44:28 -0000       1.1.1.1
+++ rfb_win32/Clipboard.cxx     27 Jun 2005 11:19:32 -0000
@@ -126,7 +126,7 @@
                } else {
                  CharArray unix_text;
                  unix_text.buf = dos2unix(clipdata);
-                removeNonAsciiChars(unix_text.buf);
+                // removeNonAsciiChars(unix_text.buf);
                  notifier->notifyClipboardChanged(unix_text.buf, 
strlen(unix_text.buf));
                }
              } else {
@@ -162,7 +162,7 @@
      // - Pre-process the supplied clipboard text into DOS format
      CharArray dos_text;
      dos_text.buf = unix2dos(text);
-    removeNonAsciiChars(dos_text.buf);
+    // removeNonAsciiChars(dos_text.buf);
      int dos_text_len = strlen(dos_text.buf);

      // - Allocate global memory for the data


-- 
Peter Estrand           Chief Developer
Cendio                  www.thinlinc.com
Teknikringen 3          www.cendio.se
583 30 Linkvping        Phone: +46-13-21 46 00
_______________________________________________
VNC-List mailing list
[email protected]
To remove yourself from the list visit:
http://www.realvnc.com/mailman/listinfo/vnc-list

Reply via email to