2

I know I change change the locale for an application using

import locale locale.setlocale(locale.LC_ALL, '') 

Documentation says default value for locale usually comes from LANG environment variable. However, on Windows platform, it seems to be different. Where does Python takes the default value for locale? Is there a way to change this default value for all my Python scripts?

1
  • Can't you set the LANG environment variable? Commented Jun 27, 2012 at 21:15

2 Answers 2

2

The default system locale for a windows system can be set via the control panel. Python uses this default locale when you call setlocale with '' as the second argument. See here on how to change the default locale.

Sign up to request clarification or add additional context in comments.

Comments

0

It is the value you've set in Control Panel.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.