Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id 35169B5DE78 for ; Fri, 12 Aug 2011 13:37:21 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.251]) (amavisd-maia, port 10024) with ESMTP id 77876-01-7 for ; Fri, 12 Aug 2011 16:37:21 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from wwwmaster.postgresql.org (wwwmaster.postgresql.org [217.196.146.204]) by mail.postgresql.org (Postfix) with ESMTP id AECCEB5FADB for ; Fri, 12 Aug 2011 13:33:45 -0300 (ADT) Received: from wwwmaster.postgresql.org (wwwmaster.postgresql.org [217.196.146.204]) by wwwmaster.postgresql.org (8.14.3/8.14.3) with ESMTP id p7CGXi5q071603 for ; Fri, 12 Aug 2011 16:33:44 GMT (envelope-from www@wwwmaster.postgresql.org) Received: (from www@localhost) by wwwmaster.postgresql.org (8.14.3/8.14.3/Submit) id p7CGXiWv071602; Fri, 12 Aug 2011 16:33:44 GMT (envelope-from www) Date: Fri, 12 Aug 2011 16:33:44 GMT Message-Id: <201108121633.p7CGXiWv071602@wwwmaster.postgresql.org> To: pgsql-bugs@postgresql.org Subject: BUG #6161: Not enough memory error in psql with UTF8 console From: "Gavin Kistner" Content-Type: text/plain; charset=utf-8 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 201108/88 X-Sequence-Number: 30900 The following bug has been logged online: Bug reference: 6161 Logged by: Gavin Kistner Email address: gkistner@nvidia.com PostgreSQL version: 9.0.4 Operating system: Windows 7x64 Description: Not enough memory error in psql with UTF8 console Details: 1. Create registry key "HKEY_LOCAL_MACHINE\Software\Microsoft\Command Processor\Autorun" with value "@chcp 65001>nul" to set Windows console to UTF8 (see url[1]). 2. Open a new cmd.exe window 3. Connect to a simple database using psql.exe --> Text displayed: WARNING: Console code page (65001) differs from Windows code page (1252) 8-bit characters might not work correctly. See psql reference page "Notes for Windows users" for details. 4. Type "\dt" EXPECTED: List of tables. ACTUAL: "Not enough memory." displayed. 5. \q and close the cmd.exe window. 6. Delete the Autorun registry key. 7. Repeat steps 2-3 --> Text displayed: WARNING: Console code page (437) differs from Windows code page (1252) 8-bit characters might not work correctly. See psql reference page "Notes for Windows users" for details. 4. Type "\dt" --> List of tables is properly displayed [1] http://superuser.com/questions/269818