From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GePpL-0003dj-D4 for qemu-devel@nongnu.org; Mon, 30 Oct 2006 00:36:51 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GePpJ-0003dX-OH for qemu-devel@nongnu.org; Mon, 30 Oct 2006 00:36:50 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GePpJ-0003dU-Kq for qemu-devel@nongnu.org; Mon, 30 Oct 2006 00:36:49 -0500 Received: from [211.5.2.77] (helo=nm01omta017.dion.ne.jp) by monty-python.gnu.org with smtp (Exim 4.52) id 1GePpJ-0000b0-AP for qemu-devel@nongnu.org; Mon, 30 Oct 2006 00:36:49 -0500 Message-ID: <000c01c6fbe5$68255f00$0464a8c0@athlon> From: "Kazu" Subject: [Qemu-devel] -k option on Windows host Date: Mon, 30 Oct 2006 14:36:53 +0900 MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_NextPart_000_0009_01C6FC30.D7D61880" Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org This is a multi-part message in MIME format. ------=_NextPart_000_0009_01C6FC30.D7D61880 Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: 7bit Hi, FYI, -k option can be used only for -vnc option on Windows host. It is correct that keyboard layout is US keyboard when you start a guest OS. After booting the guest OS, key layout is converted to your language environment by the guest OS. You can use your language layout in the guest OS. Attatched is a patch for disable -k option if -vnc option is not used. Regards, Kazu ------=_NextPart_000_0009_01C6FC30.D7D61880 Content-Type: application/octet-stream; name="qemu-20061030-k-option.patch" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="qemu-20061030-k-option.patch" ? pc-bios/keymaps=0A= Index: sdl.c=0A= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=0A= RCS file: /sources/qemu/qemu/sdl.c,v=0A= retrieving revision 1.31=0A= diff -u -r1.31 sdl.c=0A= --- sdl.c 19 Aug 2006 14:27:30 -0000 1.31=0A= +++ sdl.c 30 Oct 2006 04:04:53 -0000=0A= @@ -554,6 +554,10 @@=0A= if (!keyboard_layout)=0A= keyboard_layout =3D "en-us";=0A= #endif=0A= +#ifdef _WIN32=0A= + if (vnc_display =3D=3D -1)=0A= + keyboard_layout =3D NULL;=0A= +#endif=0A= if(keyboard_layout) {=0A= kbd_layout =3D init_keyboard_layout(keyboard_layout);=0A= if (!kbd_layout)=0A= Index: vl.h=0A= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=0A= RCS file: /sources/qemu/qemu/vl.h,v=0A= retrieving revision 1.154=0A= diff -u -r1.154 vl.h=0A= --- vl.h 24 Sep 2006 18:49:43 -0000 1.154=0A= +++ vl.h 30 Oct 2006 04:04:55 -0000=0A= @@ -203,6 +203,8 @@=0A= =0A= void kbd_put_keysym(int keysym);=0A= =0A= +extern int vnc_display;=0A= +=0A= /* async I/O support */=0A= =0A= typedef void IOReadHandler(void *opaque, const uint8_t *buf, int size);=0A= ------=_NextPart_000_0009_01C6FC30.D7D61880--