title: OS locale support for use in Python
body: <p>The following Python code works on my Windows machine (Python 2.5.4), but doesn't on my Debian machine (Python 2.5.0). I'm guessing it's OS dependent.</p>
  
  <pre><code>import locale
  locale.setlocale( locale.LC_ALL, 'English_United States.1252' )
  </code></pre>
  
  <p>I receive the following error:</p>
  
  <pre><code>Traceback (most recent call last):
    File "&lt;stdin&gt;", line 1, in &lt;module&gt;
    File "/usr/lib/python2.5/locale.py", line 476, in setlocale
      return _setlocale(category, locale)
  locale.Error: unsupported locale setting
  </code></pre>
  
  <p>Questions:</p>
  
  <ul>
  <li>Is it OS dependent?</li>
  <li>How can I find the supported locale
  list within Python?</li>
  <li>How can I match between Windows
  locales and Debian locales?</li>
  </ul>