Is this a bug?

Started by Davide Gonnellaover 11 years ago3 messagesbugs
Jump to latest
#1Davide Gonnella
davide.gonnella@gmail.com

Hi guys,

I've received this warning with the note to forward it to this address so
I am writing you.

"warning: Could not determine encoding for locale "en_US-UTF-8" codeset is
"646"

I've init the DB with the following command, perhaps is this the cause? (I
would like to SE UTF-8 as codeset)

initdb --pgdata=/var/postgresql/data -E 'UTF-8' --lc-collate='en_US-UTF-8'
--lc-ctype='en_US-UTF-8'

Btw I've done is before on test env and I haven't see this error on
"create database"

Thank you.

Best Regards,
Davide

#2desmodemone
desmodemone@gmail.com
In reply to: Davide Gonnella (#1)
Re: Is this a bug?

2014-07-31 0:11 GMT+02:00 Davide Gonnella <davide.gonnella@gmail.com>:

Hi guys,

I've received this warning with the note to forward it to this address so
I am writing you.

"warning: Could not determine encoding for locale "en_US-UTF-8" codeset is
"646"

I've init the DB with the following command, perhaps is this the cause? (I
would like to SE UTF-8 as codeset)

initdb --pgdata=/var/postgresql/data -E 'UTF-8' --lc-collate='en_US-UTF-8'
--lc-ctype='en_US-UTF-8'

Btw I've done is before on test env and I haven't see this error on
"create database"

Thank you.

Best Regards,
Davide

Hi Davide,
I not think en_US-UTF-8 is a valid locale naming,
could you try with en_US.UTF-8 ?

Thanks

Mat

#3Tom Lane
tgl@sss.pgh.pa.us
In reply to: Davide Gonnella (#1)
Re: Is this a bug?

Davide Gonnella <davide.gonnella@gmail.com> writes:

"warning: Could not determine encoding for locale "en_US-UTF-8" codeset is
"646"

Are you sure that locale name is actually defined on your system?
"locale -a" will list the known names.

regards, tom lane

--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs