Skip to content

Instantly share code, notes, and snippets.

@gstark
Created April 30, 2012 00:03
Show Gist options
  • Save gstark/2554213 to your computer and use it in GitHub Desktop.
Save gstark/2554213 to your computer and use it in GitHub Desktop.
rails tests postgres

I'm trying to run the rails test suite but I keep getting this error:

$ bundle exec rake postgresql:build_databases
createdb: database creation failed: ERROR:  encoding UTF8 does not match locale en_US
DETAIL:  The chosen LC_CTYPE setting requires encoding LATIN1.
createdb: database creation failed: ERROR:  encoding UTF8 does not match locale en_US
DETAIL:  The chosen LC_CTYPE setting requires encoding LATIN1.
@barakargaman
Copy link

@jeffbmartinez thanks for the detailed explanation!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment