title: Error setup powerline for bash shell on Yosemite
body: <p>I would like to use <em>powerline</em> with <em>bash</em> (not <em>zsh</em> if possible) but I have faced some errors, below are steps I have been through</p>
  
  <p>I recently install <em>python</em> using <em>homebrew</em></p>
  
  <p>I have also executed <code>brew linkapps python</code></p>
  
  <p>I have installed <em>powerline-statys</em> using <code>pip install powerline-status</code></p>
  
  <p>I have extended my <em>~/.bash_profile</em></p>
  
  <pre><code>if [ -f /usr/local/lib/python2.7/site-packages/powerline/bindings/bash/powerline.sh ]; then
      source /usr/local/lib/python2.7/site-packages/powerline/bindings/bash/powerline.sh
  fi
  </code></pre>
  
  <p>I also have installed patched fonts from <a href="https://github.com/powerline/fonts" rel="nofollow">https://github.com/powerline/fonts</a> using it's <code>install.sh</code></p>
  
  <p>After Opennig new tab in <em>iTerm2</em> I have faced this error, I think it's about <em>python</em> but I have no ideas how to fix it, so please help</p>
  
  <pre><code>traceback (most recent call last):
    File "/usr/local/bin/powerline-config", line 6, in &lt;module&gt;
      from powerline.commands.config import get_argparser
    File "/usr/local/lib/python2.7/site-packages/powerline/commands/config.py", line 6, in &lt;module&gt;
      import powerline.bindings.config as config
    File "/usr/local/lib/python2.7/site-packages/powerline/bindings/config.py", line 19, in &lt;module&gt;
      from powerline.commands.main import finish_args
    File "/usr/local/lib/python2.7/site-packages/powerline/commands/main.py", line 17, in &lt;module&gt;
      encoding = get_preferred_arguments_encoding()
    File "/usr/local/lib/python2.7/site-packages/powerline/lib/encoding.py", line 77, in get_preferred_arguments_encoding
      locale.getdefaultlocale()[1]
    File "/usr/local/Cellar/python/2.7.10_2/Frameworks/Python.framework/Versions/2.7/lib/python2.7/locale.py", line 543, in getdefaultlocale
     return _parse_localename(localename)
    File "/usr/local/Cellar/python/2.7.10_2/Frameworks/Python.framework/Versions/2.7/lib/python2.7/locale.py", line 475, in _parse_localename
      raise ValueError, 'unknown locale: %s' % localename
  ValueError: unknown locale: UTF-8
  Traceback (most recent call last):
    File "/usr/local/bin/powerline-config", line 6, in &lt;module&gt;
      from powerline.commands.config import get_argparser
    File "/usr/local/lib/python2.7/site-packages/powerline/commands/config.py", line 6, in &lt;module&gt;
      import powerline.bindings.config as config
    File "/usr/local/lib/python2.7/site-packages/powerline/bindings/config.py", line 19, in &lt;module&gt;
      from powerline.commands.main import finish_args
    File "/usr/local/lib/python2.7/site-packages/powerline/commands/main.py", line 17, in &lt;module&gt;
      encoding = get_preferred_arguments_encoding()
    File "/usr/local/lib/python2.7/site-packages/powerline/lib/encoding.py", line 77, in get_preferred_arguments_encoding
      locale.getdefaultlocale()[1]
    File "/usr/local/Cellar/python/2.7.10_2/Frameworks/Python.framework/Versions/2.7/lib/python2.7/locale.py", line 543, in getdefaultlocale
      return _parse_localename(localename)
    File "/usr/local/Cellar/python/2.7.10_2/Frameworks/Python.framework/Versions/2.7/lib/python2.7/locale.py", line 475, in _parse_localename
      raise ValueError, 'unknown locale: %s' % localename
  ValueError: unknown locale: UTF-8
  </code></pre>
  
  <h3>My Environment</h3>
  
  <pre><code>python --version
  Python 2.7.6
  
  brew list python
  /usr/local/Cellar/python/2.7.10_2/bin/2to3
  /usr/local/Cellar/python/2.7.10_2/bin/2to3-2
  /usr/local/Cellar/python/2.7.10_2/bin/2to3-2.7
  /usr/local/Cellar/python/2.7.10_2/bin/easy_install
  /usr/local/Cellar/python/2.7.10_2/bin/easy_install-2.7
  /usr/local/Cellar/python/2.7.10_2/bin/idle
  /usr/local/Cellar/python/2.7.10_2/bin/idle2
  /usr/local/Cellar/python/2.7.10_2/bin/idle2.7
  /usr/local/Cellar/python/2.7.10_2/bin/pip
  /usr/local/Cellar/python/2.7.10_2/bin/pip2
  /usr/local/Cellar/python/2.7.10_2/bin/pip2.7
  /usr/local/Cellar/python/2.7.10_2/bin/pydoc
  /usr/local/Cellar/python/2.7.10_2/bin/pydoc2
  /usr/local/Cellar/python/2.7.10_2/bin/pydoc2.7
  /usr/local/Cellar/python/2.7.10_2/bin/python
  /usr/local/Cellar/python/2.7.10_2/bin/python-config
  /usr/local/Cellar/python/2.7.10_2/bin/python2
  /usr/local/Cellar/python/2.7.10_2/bin/python2-config
  /usr/local/Cellar/python/2.7.10_2/bin/python2.7
  /usr/local/Cellar/python/2.7.10_2/bin/python2.7-config
  /usr/local/Cellar/python/2.7.10_2/bin/pythonw
  /usr/local/Cellar/python/2.7.10_2/bin/pythonw2
  /usr/local/Cellar/python/2.7.10_2/bin/pythonw2.7
  /usr/local/Cellar/python/2.7.10_2/bin/smtpd.py
  /usr/local/Cellar/python/2.7.10_2/bin/smtpd2.7.py
  /usr/local/Cellar/python/2.7.10_2/bin/smtpd2.py
  /usr/local/Cellar/python/2.7.10_2/bin/wheel
  /usr/local/Cellar/python/2.7.10_2/Frameworks/Python.framework/ (3761 files)
  /usr/local/Cellar/python/2.7.10_2/IDLE.app/Contents/ (8 files)
  /usr/local/Cellar/python/2.7.10_2/lib/pkgconfig/ (3 files)
  /usr/local/Cellar/python/2.7.10_2/libexec/pip/ (499 files)
  /usr/local/Cellar/python/2.7.10_2/libexec/setuptools/ (227 files)
  /usr/local/Cellar/python/2.7.10_2/libexec/wheel/ (92 files)
  /usr/local/Cellar/python/2.7.10_2/Python Launcher.app/Contents/ (17 files)
  /usr/local/Cellar/python/2.7.10_2/share/man/ (3 files)
  /usr/local/Cellar/python/2.7.10_2/share/python/ (315 files)
  </code></pre>