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.
They come from the setup recommended for running the active_record tests in rails here: http://edgeguides.rubyonrails.org/contributing_to_ruby_on_rails.html
This isn't for running on my project, its for running the tests on rails itself.