title: Jenkins Linux Slave Locale
body: <p>I have Jenkins setup as master on a Windows machine.  I am trying to connect a Linux machine as a slave with JNLP using the following command:</p>
  
  <pre><code>/usr/java/latest/bin/java -jar /home/devjenkins/slave/slave.jar -jnlpUrl "$JNLP_URL"
  </code></pre>
  
  <p>where JNLP_URL is the url to connect with the master Jenkins.  The connection connects successfully and I am able to run jobs on the slave machine.</p>
  
  <p>The problem that I have not managed to solve is setting the Locale on the slave machine which for some reason seems to be defaulting to <code>en_US.utf8</code> instead of <code>en_GB.utf8</code>.  When connecting through SSH to this linux machine with the same user as the jenkins slave, the locale is resolving correctly to <code>en_GB.utf8</code>.</p>
  
  <p>I tried setting an environment variable to the node configuration in Jenkins master <code>LANG=en_GB.utf8</code> but when viewing the system information from nodes > slavemachine > system information, the Environment Variables refer to the property
  <code>LANG   en_US.UTF-8</code>.  </p>
  
  <p>Any ideas where this property is being set and how can I override this value?</p>