Re: psql & readline & win32

Поиск
Список
Период
Сортировка
От Andrew Dunstan
Тема Re: psql & readline & win32
Дата
Msg-id 43B86B09.50405@dunslane.net
обсуждение исходный текст
Ответ на psql & readline & win32  ("Magnus Hagander" <mha@sollentuna.net>)
Ответы Re: psql & readline & win32  (Robert Treat <xzilla@users.sourceforge.net>)
Список pgsql-hackers

Magnus Hagander wrote:

>
>Considering we have a fix, I think we need to re-enable readline on win32, and document this. However, there are a
coupleof things to decide on first:
 
>
>1) Should it be made default? As it requires you to include this file to work, perhaps it should be set to non-default
andspecifically require a --with-readline? Also depends on th eanswers of a couple of questions below, I think.
 
>  
>

Good work.

It should be the default - if we find readline we should use it. I guess 
that means the installer would need to ship the readline DLL, along with 
all the other third party DLLs it ships.

>2) Should we ship a file of standard bindings. We're not going to get it complete, but we could get some of the most
commonones in europe at least (in sweden, this would for example include "\@£${[]}~|"). Which would help people a lot.
 
>  
>

Yes we should, at least for Windows - put it in share along with other 
samples, maybe.

>3) How should the inputrc file be loaded. By default, you have to type SET INPUTRC="\some\where\inputrc" before you
launchpsql. But we could just as easily add:
 
>#if defined(WIN32) && defined(USE_READLINE)
>   rl_read_init_file(our_path_to_inputrc);
>#endif
>to psql, making that step a whole lot easier. Especially for people who launch psql from the startmenu, and can't
specifyprogram-specific env vars.
 
>  
>

if user has $HOME/inputrc load $HOME/inputrc
elsif exists $SYSTEMCONFIG/inputrc load $SYSTEMCONFIG/inputrc
endif

Since inputrc is meant to service many applications, we shouldn't try to 
bypass that.

cheers

andrew

>
>4) Can we ship linked with readline in the installer? If not, can we ship a readline-linked binary at all, or just the
source?Considering readline drags along the GPL, and not just the LGPL. (We can link either statically (default) or
dynamically(separate package) to readline without problems, from what I can tell)
 
>  
>

This has been debated ad nauseam in the past. The consensus, bar a few 
people with more advanced paranoia than I suffer from, is that we can ;-)


cheers

andrew


В списке pgsql-hackers по дате отправления:

Предыдущее
От: Robert Treat
Дата:
Сообщение: Re: Add a "Known Issues" section
Следующее
От: Doug Royer
Дата:
Сообщение: Re: EINTR error in SunOS