Received: from [140.186.70.92] (port=37162 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OMSOI-0004At-Is for qemu-devel@nongnu.org; Wed, 09 Jun 2010 17:00:51 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OMSOH-0002O7-BV for qemu-devel@nongnu.org; Wed, 09 Jun 2010 17:00:50 -0400 Received: from adelie.canonical.com ([91.189.90.139]:60244) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OMSOH-0002Ns-4k for qemu-devel@nongnu.org; Wed, 09 Jun 2010 17:00:49 -0400 Received: from loganberry.canonical.com ([91.189.90.37]) by adelie.canonical.com with esmtp (Exim 4.69 #1 (Debian)) id 1OMSOE-0003l7-Cy for ; Wed, 09 Jun 2010 22:00:46 +0100 Received: from loganberry.canonical.com (localhost [127.0.0.1]) by loganberry.canonical.com (Postfix) with ESMTP id D310E2E826F for ; Wed, 9 Jun 2010 22:00:43 +0100 (BST) MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Date: Wed, 09 Jun 2010 20:54:20 -0000 From: "Devin J. Pohly" Sender: bounces@canonical.com References: <20100422184526.26402.29988.malonedeb@wampee.canonical.com> Message-Id: <20100609205420.3848.26748.malone@wampee.canonical.com> Errors-To: bounces@canonical.com Subject: [Qemu-devel] [Bug 568614] Re: x86_64 host curses interface: spacing/garbling Reply-To: Bug 568614 <568614@bugs.launchpad.net> List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Perhaps you have found an endianness bug as well, but my issue is with word size (my host is a 64-bit Intel). I manually applied the patch to a 0.12.3 build, and I am still seeing the problem with the curses console. It seems that the console_ch_t type is used in a number of different contexts. The console.c and console.h files use console_ch_t fairly uniformly. However, the `screen' array in curses.c is cast to both uint8_t* and chtype* (unsigned int* according to my curses library) and passed as console_ch_t* (unsigned long*) to vga_hw_text_update. That's three different bit-sizes on my machine... is it possible that the problem lies here? -- = x86_64 host curses interface: spacing/garbling https://bugs.launchpad.net/bugs/568614 You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. Status in QEMU: In Progress Bug description: Environment: Arch Linux x86_64, kernel 2.6.33, qemu 0.12.3 Steps to reproduce: 1. Have a host system running 64-bit Linux. 2. Start a qemu VM with the -curses flag. Expected results: Text displayed looks as it would on a real text-mode display, and VM is the= refore usable. Actual results: Text displayed contains an extra space between characters, causing text to = flow off the right and bottom sides of the screen. This makes the curses in= terface unintelligible. The attached patch fixes this problem on 0.12.3 on my installation without = changing behavior on a 32-bit machine. I don't know enough of the semantic= s of console_ch_t to know if this is the "correct" fix or if there should b= e, say, an extra cast somewhere instead.