Skip site navigation (1) Skip section navigation (2)

Re: backslash in psql win32

From: Martin Kanich <kanci(at)pobox(dot)sk>
To: pgsql-hackers-win32(at)postgresql(dot)org
Subject: Re: backslash in psql win32
Date: 2004-06-13 12:19:15
Message-ID: cahgne$t7c$ (view raw, whole thread or download thread mbox)
Lists: pgsql-hackers-win32
Hi to all, specialy to Tom :-)

I have the same problem using backslash in mingw build of psql. the 
reason for this "bug" is the use of readline 

in function gets_interactive, if USE_READLINE defined the readline 
function would be called:

    if (useReadline)
       /* On some platforms, readline is declared as readline(char *) */
       s = readline((char *) prompt);
       s = gets_basic(prompt);

if I set useReadline to false, it would use gets_basic and this works 
with cmd & winxp & german settings (backslash using alt-gr). I don't 
know what exactly happens in readline() and why it's better than 
gets_basic(), but it shouldn't be used with msys/mingw.

Have a nice day,

Tom(dot)Zschockelt(at)flender(dot)com wrote:
> Hi to all,
> in win32 psql (startet from cmd.exe) it's not possible to execute any 
> backslash command, because
> the backslash character does not appear . It's not possible to insert 
> special characters !!!
> I changed the console charset to 850, 1252,
> but there is the same problem
> How can I solve this problem ?
> Regards
> tom
> hint : I use postgres-snapshot from 30.03.2004

In response to

pgsql-hackers-win32 by date

Next:From: Martin KanichDate: 2004-06-13 18:56:19
Subject: Installer
Previous:From: Greg StarkDate: 2004-06-12 08:03:27
Subject: Re: [pgsql-hackers-win32] Tablespaces

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group