Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #91186 > unrolled thread
| Started by | Laura Creighton <lac@openend.se> |
|---|---|
| First post | 2015-05-24 16:45 +0200 |
| Last post | 2015-05-24 16:45 +0200 |
| Articles | 1 — 1 participant |
Back to article view | Back to comp.lang.python
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
Re: programmatically change windows regional settings? Laura Creighton <lac@openend.se> - 2015-05-24 16:45 +0200
| From | Laura Creighton <lac@openend.se> |
|---|---|
| Date | 2015-05-24 16:45 +0200 |
| Subject | Re: programmatically change windows regional settings? |
| Message-ID | <mailman.23.1432478737.5151.python-list@python.org> |
In a message of Sun, 24 May 2015 14:07:37 +0100, Mark Lawrence writes: >On 24/05/2015 13:50, Albert-Jan Roskam via Python-list wrote: >> >> Hi, >> >> In Windows I can change the regional settings manually in the control panel. But how do I do this programmatically? I tried setting LANG but this does not work in Windows. >> >> Kernel32's SetLocaleInfo sounds promising, but "This setting only affects the user override portion of the locale settings; it does not set the system defaults." https://msdn.microsoft.com/en-us/library/ee491893(v=winembedded.60).aspx >> >> Another route might be _winreg (but that's probably more brittle and, more importantly, the registry sucks) >> >> My goal is to easily run my unittests in a number of locales (actually a platform x locale x python version matrix) >> >> Thanks! >> >> Albert-Jan >You're probably better off asking this on >https://mail.python.org/mailman/listinfo/python-win32 which is also >available as gmane.comp.python.windows, although you might get lucky >here. If you do a rather more specific statement than "this does not >work in Windows" would be helpful. Your Python and Windows version(s) >might possibly assist as well :) > >-- >My fellow Pythonistas, ask not what our language can do for you, ask >what you can do for our language. > >Mark Lawrence I actually think he will get the best advice from the testing-in-python mailing list. http://lists.idyll.org/listinfo/testing-in-python Laura
Back to top | Article view | comp.lang.python
csiph-web