Re: [PATCHES] Show encoding in initdb messages

2004-07-05 Thread Bruce Momjian
Is this a TODO? --- Andrew Dunstan wrote: > Tom Lane wrote: > > >Peter Eisentraut <[EMAIL PROTECTED]> writes: > > > > > >>But the answer space is infinite: > >> > >> > > > > > > > >>$ LANG=C locale charmap > >>ANSI_

Re: [PATCHES] Show encoding in initdb messages

2004-06-21 Thread Andrew Dunstan
Tom Lane wrote: Peter Eisentraut <[EMAIL PROTECTED]> writes: But the answer space is infinite: $ LANG=C locale charmap ANSI_X3.4-1968 Right, the hard part is mapping whatever weird string "locale charmap" chooses to return into one of the encodings our code knows about. HPUX seems t

Re: [PATCHES] Show encoding in initdb messages

2004-06-21 Thread Tom Lane
Peter Eisentraut <[EMAIL PROTECTED]> writes: > But the answer space is infinite: > $ LANG=C locale charmap > ANSI_X3.4-1968 Right, the hard part is mapping whatever weird string "locale charmap" chooses to return into one of the encodings our code knows about. HPUX seems to be just arbitrarily b

Re: [PATCHES] Show encoding in initdb messages

2004-06-21 Thread Peter Eisentraut
Tom Lane wrote: > What I personally wish we could do is eliminate database encoding as > a separate setting altogether, and drive it off the locale selection. > I don't know how to do that though. The information is available: $ LANG=de_DE locale charmap ISO-8859-1 $ [EMAIL PROTECTED] locale char

Re: [PATCHES] Show encoding in initdb messages

2004-06-21 Thread Tom Lane
"Magnus Hagander" <[EMAIL PROTECTED]> writes: >>> The reason it will help with support is because newbies will go >>> "SQL_ASCII! I don't want ascii!". >> >> No they won't. They will likely not even notice this message >> in the sea of other messages they've never seen before; and >> even if t

Re: [PATCHES] Show encoding in initdb messages

2004-06-21 Thread Magnus Hagander
> > The reason it will help with support is because newbies will go > > "SQL_ASCII! I don't want ascii!". > > No they won't. They will likely not even notice this message > in the sea of other messages they've never seen before; and > even if they do notice it, they will certainly not realize

Re: [PATCHES] Show encoding in initdb messages

2004-06-21 Thread Tom Lane
Christopher Kings-Lynne <[EMAIL PROTECTED]> writes: >>> This should save a lot of support requests, hopefully. >> >> I kinda doubt it will save any :-(. In what situation would this not >> merely be echoing back what the guy had just specifically typed on the >> command line? > When no -E argume

Re: [PATCHES] Show encoding in initdb messages

2004-06-21 Thread Christopher Kings-Lynne
This should save a lot of support requests, hopefully. I kinda doubt it will save any :-(. In what situation would this not merely be echoing back what the guy had just specifically typed on the command line? When no -E argument is supplied at all, or when they type ISO-8859-1 instead of LATIN1.

Re: [PATCHES] Show encoding in initdb messages

2004-06-21 Thread Tom Lane
Christopher Kings-Lynne <[EMAIL PROTECTED]> writes: > The database cluster will be initialized with locale C. > The database cluster will be initialized with default encoding UNICODE. > This should save a lot of support requests, hopefully. I kinda doubt it will save any :-(. In what situation w