From fdcf53b56d94eab7f893c8829e48d5a083eb17ab Mon Sep 17 00:00:00 2001 From: michal Date: Mon, 4 Jan 2016 21:58:02 +0100 Subject: [PATCH] #6794 Add to doc trick how to define locale for SSH session in Vagrant file --- website/docs/source/v2/vagrantfile/tips.html.md | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/website/docs/source/v2/vagrantfile/tips.html.md b/website/docs/source/v2/vagrantfile/tips.html.md index c195e5084..5c84ec14a 100644 --- a/website/docs/source/v2/vagrantfile/tips.html.md +++ b/website/docs/source/v2/vagrantfile/tips.html.md @@ -47,3 +47,20 @@ every node will actually provision with the same text. This is an easy mistake to make, and Vagrant can't really protect against it, so the best we can do is mention it here. + +## Overwrite host locale in ssh session + +Usually, host locale environment variables are passed to guest. It may cause +failures when guest software do not support host locale + +Possible solution is override locale in Vagrant file: + +
+Vagrant.configure(2) do |config|
+  config.vm.box = "ubuntu/vivid64"
+  ENV['LC_ALL']="en_US.UTF-8"
+end 
+
+ +The change is visible within Vagrantfile only. +