I am having a spot of trouble setting up a db due to the following :
$ createdb -E UTF-8 -p 5432 nominatim
createdb: database creation failed: ERROR: encoding "UTF8" does not match locale "en_US"
DETAIL: The chosen LC_CTYPE setting requires encoding "LATIN1".
ERROR: Error executing external command: createdb -E UTF-8 -p 5432 nominatim
In /etc/profile I set locale to en_US.UTF-8 and when I check 'locale' as postgres user (or my own user) all vars including LC_CTYPE are 'en_US.UTF-8'. Also, I have run sudo locale-gen en_US en_US.UTF-8
and sudo dpkg-reconfigure locales
. Does anyone have a clue why LC_CTYPE seems to be falling back to en_US and not en_US.UTF-8?