Hi All,<div><br></div><div>When i try to set a locale manually, i get this error.</div><div><br></div><div>>>> import locale</div><div><div>>>> locale.setlocale(locale.LC_ALL, 'es_cl.iso88591')</div>

<div>Traceback (most recent call last):</div><div>  File "<stdin>", line 1, in <module></div><div>  File "/usr/local/lib/python2.7/locale.py", line 531, in setlocale</div><div>    return _setlocale(category, locale)</div>

<div>locale.Error: unsupported locale setting</div></div><div><br></div><div>On my OS, when i run the locale -a command, i get this output</div><div>-------------------------</div><div><div><b>locale -a</b></div><div>C</div>

<div>POSIX</div><div>en_US</div><div>en_US.8859-15</div><div>en_US.ISO8859-1</div></div><div>-------------------------</div><div>Does this means that on my machine, Python will be able to make use of above listed locales?</div>

<div><br></div><div><b>If yes then how can i possibly use the locale.setformat (or anything else for that matter) to group numbers using '.' as the thousands separator?</b></div><div><br></div><div>If i use the locale en_US then ',' is the thousands separator.</div>

<div><br></div><div><div>>>> import locale</div><div>>>> locale.setlocale(locale.LC_ALL, 'en_US')</div><div>'en_US'</div><div>>>> locale.format("%d", 1255000, grouping=True)</div>

<div>'1,255,000'</div></div><div><br></div><div>Regards,</div><div>Anurag</div>