pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Theodore Petrosky <tedpet5@yahoo.com>
Cc: pgsql-sql@postgresql.org, Peter Eisentraut <peter_e@gmx.net>
Subject: Re: case sensitive/insensitive confusion
Date: Tue, 01 Feb 2005 13:36:14 -0500
Message-ID: <16248.1107282974@sss.pgh.pa.us> (raw)
In-Reply-To: <20050201124858.38440.qmail@web41006.mail.yahoo.com>
References: <20050201124858.38440.qmail@web41006.mail.yahoo.com>

Theodore Petrosky <tedpet5@yahoo.com> writes:
> Mac os x, postgresql 8.0.1
> initdb --locale=es_ES ~/testdb
> ...
> The database cluster will be initialized with locale es_ES.
> initdb: could not find suitable encoding for locale "es_ES"
> Rerun initdb with the -E option.

I looked into this and find that the issue seems to be Apple's rather
limited (not to say brain dead) locale support.  What I see on OSX
10.3.7 is that <langinfo.h> defines CODESET, but nl_langinfo(CODESET)
always returns an empty string.  So there's not any obvious way to
determine the correct encoding associated with a locale setting.

			regards, tom lane



view thread (5+ messages)

Message-ID: <16248.1107282974@sss.pgh.pa.us>
Permalink:  ../16248.1107282974@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/16248.1107282974@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: tgl@sss.pgh.pa.us, tedpet5@yahoo.com, peter_e@gmx.net
  Subject: Re: case sensitive/insensitive confusion
  In-Reply-To: <16248.1107282974@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox