From: | Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> |
---|---|
To: | Andrew Dunstan <andrew(at)dunslane(dot)net> |
Cc: | Patches <pgsql-patches(at)postgresql(dot)org> |
Subject: | Re: Show encoding in initdb messages |
Date: | 2004-07-05 13:29:33 |
Message-ID: | 200407051329.i65DTXJ08049@candle.pha.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers pgsql-patches |
Is this a TODO?
---------------------------------------------------------------------------
Andrew Dunstan wrote:
> Tom Lane wrote:
>
> >Peter Eisentraut <peter_e(at)gmx(dot)net> 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 bizarre:
> >
> >$ LC_ALL=en_US.iso88591 locale charmap
> >"iso88591.cm"
> >$ LC_ALL=C.utf8 locale charmap
> >"utf8.cm"
> >$
> >
> >As near as I can tell, the .cm is present in all the possible results;
> >and why the quotes?
> >
> >
>
>
> >
> >
> >>I suspect Japanese users will also have a problem with this mechanism,
> >>but at least we could keep -E to override the automatic selection.
> >>
> >>
> >
> >Perhaps we could try to derive a setting from locale charmap, but barf
> >and require explicit -E if we can't recognize it?
> >
> >
> >
>
> Sounds like an excellent plan, at least for platforms that have such a
> command. Windows does not appear to :-(. Are there other *nixes that
> also lack it, or that also produce bizarre results like PH-UX?
>
> cheers
>
> andrew
>
> ---------------------------(end of broadcast)---------------------------
> TIP 5: Have you checked our extensive FAQ?
>
> http://www.postgresql.org/docs/faqs/FAQ.html
>
--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073
From | Date | Subject | |
---|---|---|---|
Next Message | Andrew Dunstan | 2004-07-05 13:33:58 | strange bug in plperl |
Previous Message | John Hansen | 2004-07-05 13:28:45 | Re: Relay Access Denied |
From | Date | Subject | |
---|---|---|---|
Next Message | Bruce Momjian | 2004-07-05 20:10:10 | Re: make_ctags change |
Previous Message | Fabien COELHO | 2004-07-05 07:59:00 | build infrastructure for extensions v3 |