I have a script that run the following command to create a database:
createdb --template template0 -E SQL_ASCII foobar
I get the error:
createdb: database creation failed: ERROR: encoding SQL_ASCII does not match locale en_US.UTF-8
DETAIL: The chosen LC_CTYPE setting requires encoding UTF8.
I can understand why the locale can be a problem, so I decided to set LC_ALL=C but it doesn't work still:
$ LC_ALL=C createdb --template template0 -E SQL_ASCII gnattracker
createdb: database creation failed: ERROR: encoding SQL_ASCII does not match locale en_US.UTF-8
DETAIL: The chosen LC_CTYPE setting requires encoding UTF8.
Do you have an idea what the problem could be?
I am using Fedora 13