From owner-freebsd-emulation@FreeBSD.ORG Thu Nov 18 12:51:44 2010 Return-Path: Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 32C7F10656AE for ; Thu, 18 Nov 2010 12:51:44 +0000 (UTC) (envelope-from alexz@visp.ru) Received: from mail.visp.ru (srv1.visp.ru [91.215.204.2]) by mx1.freebsd.org (Postfix) with ESMTP id 8ABA48FC0A for ; Thu, 18 Nov 2010 12:51:43 +0000 (UTC) Received: from 91-215-205-255.static.visp.ru ([91.215.205.255] helo=zagrebin) by mail.visp.ru with esmtp (Exim 4.72 (FreeBSD)) (envelope-from ) id 1PJ3Xb-000Czi-Dk for freebsd-emulation@freebsd.org; Thu, 18 Nov 2010 15:24:39 +0300 From: "Alexander Zagrebin" To: Date: Thu, 18 Nov 2010 15:24:39 +0300 Message-ID: <20BE609613B9438AB2FA386563A9C64A@vosz.local> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_NextPart_000_2CB5_01CB8734.B763EEE0" X-Mailer: Microsoft Office Outlook 11 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5512 Thread-Index: AcuHG5HipBsZqm0wTkaoz/Wxgeg5jQ== Subject: VirtualBox's VNC code incorrectly maps "," to "`" X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 18 Nov 2010 12:51:44 -0000 This is a multi-part message in MIME format. ------=_NextPart_000_2CB5_01CB8734.B763EEE0 Content-Type: text/plain; charset="koi8-r" Content-Transfer-Encoding: 7bit I'm using VirtualBox in the headless mode with VNC support. I have noticed that when pressing "," key in the vnc client, the guest operating system receives a "`". The reason is in bug in the FramebufferVNC.cpp Tha attached patch fixes this issue. -- Alexander Zagrebin ------=_NextPart_000_2CB5_01CB8734.B763EEE0 Content-Type: application/octet-stream; name="patch-FramebufferVNC.cpp" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="patch-FramebufferVNC.cpp" --- src/VBox/Frontends/VBoxHeadless/FramebufferVNC.cpp.orig 2010-10-09 = 00:10:14.000000000 +0400=0A= +++ src/VBox/Frontends/VBoxHeadless/FramebufferVNC.cpp 2010-11-18 = 14:31:31.038485522 +0300=0A= @@ -232,7 +232,7 @@=0A= static int codes_low[] =3D=0A= {=0A= //Conversion table for VNC key code range 32-127=0A= - 0x0239, 0x0102, 0x0128, 0x0104, 0x0105, 0x0106, 0x0108, 0x0028, = 0x010a, 0x010b, 0x0109, 0x010d, 0x0029, 0x000c, 0x0034, 0x0035, //space, = !"#$%&'()*+`-./=0A= + 0x0239, 0x0102, 0x0128, 0x0104, 0x0105, 0x0106, 0x0108, 0x0028, = 0x010a, 0x010b, 0x0109, 0x010d, 0x0033, 0x000c, 0x0034, 0x0035, //space, = !"#$%&'()*+,-./=0A= 0x0b, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0x0a, = //0123456789=0A= 0x0127, 0x0027, 0x0133, 0x000d, 0x0134, 0x0135, 0x0103, = //:;<=3D>?@=0A= 0x11e, 0x130, 0x12e, 0x120, 0x112, 0x121, 0x122, 0x123, 0x117, = 0x124, 0x125, 0x126, 0x132, 0x131, 0x118, 0x119, 0x110, 0x113, 0x11f, = 0x114, 0x116, 0x12f, 0x111, 0x12d, 0x115, 0x12c, //A-Z=0A= ------=_NextPart_000_2CB5_01CB8734.B763EEE0--