Commit 873d1afa by Matjaz Gregoric

Make LC_ALL default to 'en_US.UTF-8'.

The LC_ALL environment variable is set to en_US in /etc/default/locale
in the precise32 vagrant box, see:

https://github.com/mitchellh/vagrant/issues/1188

When running the python unit tests in the devstack machine, several of the
tests fail with a UnicodeEncodeError when trying to create folders with names
that contain non-ascii characters.

Explicitly setting LC_ALL to en_US.UTF-8 before running the tests fixes this issue,
but it would be nice if the box was set up with the en_US.UTF-8 locale by default.
parent 2c9ae754
......@@ -45,6 +45,10 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
vb.customize ["modifyvm", :id, "--natdnshostresolver1", "on"]
end
# Make LC_ALL default to en_US.UTF-8 instead of en_US.
# See: https://github.com/mitchellh/vagrant/issues/1188
config.vm.provision "shell", inline: 'echo \'LC_ALL="en_US.UTF-8"\' > /etc/default/locale'
config.vm.provision :ansible do |ansible|
ansible.playbook = "../../../playbooks/vagrant-devstack.yml"
ansible.inventory_path = "../../../playbooks/vagrant/inventory.ini"
......
......@@ -20,6 +20,10 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
vb.customize ["modifyvm", :id, "--natdnshostresolver1", "on"]
end
# Make LC_ALL default to en_US.UTF-8 instead of en_US.
# See: https://github.com/mitchellh/vagrant/issues/1188
config.vm.provision "shell", inline: 'echo \'LC_ALL="en_US.UTF-8"\' > /etc/default/locale'
config.vm.provision :ansible do |ansible|
# point Vagrant at the location of your playbook you want to run
ansible.playbook = "../../../playbooks/vagrant-fullstack.yml"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment