Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #91186
| Path | csiph.com!usenet.pasdenom.info!news.redatomik.org!newsfeed.xs4all.nl!newsfeed2.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <lac@openend.se> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.003 |
| X-Spam-Evidence | '*H*': 0.99; '*S*': 0.00; 'locale': 0.07; 'override': 0.07; 'url:msdn': 0.07; '(actually': 0.09; 'lang': 0.09; 'received:openend.se': 0.09; 'received:theraft.openend.se': 0.09; 'cc:addr:python-list': 0.10; 'python': 0.11; '"this': 0.13; '(but': 0.15; '>on': 0.16; 'cc:addr:lac': 0.16; 'cc:addr:openend.se': 0.16; 'from:addr:lac': 0.16; 'from:addr:openend.se': 0.16; 'from:name:laura creighton': 0.16; 'message-id:@fido.openend.se': 0.16; 'received:89.233': 0.16; 'received:89.233.217': 0.16; 'received:89.233.217.133': 0.16; 'received:fido': 0.16; 'received:fido.openend.se': 0.16; 'registry': 0.16; 'subject:windows': 0.16; 'unittests': 0.16; 'wrote:': 0.16; 'laura': 0.18; 'language': 0.19; 'settings': 0.20; 'windows': 0.20; 'portion': 0.20; 'cc:addr:python.org': 0.21; 'cc:2**1': 0.22; 'affects': 0.22; 'lawrence': 0.22; '2015': 0.23; 'tried': 0.24; 'header:In-Reply-To:1': 0.24; 'helpful.': 0.29; 'received:se': 0.29; 'cc:no real name:2**1': 0.29; 'url:mailman': 0.31; 'run': 0.32; 'probably': 0.32; 'language.': 0.32; 'possibly': 0.32; 'url:python': 0.33; 'windows.': 0.33; 'another': 0.34; 'thanks!': 0.34; 'subject:?': 0.34; 'advice': 0.35; 'url:listinfo': 0.35; 'subject:skip:p 10': 0.35; 'asking': 0.35; 'but': 0.36; 'url:org': 0.36; 'statement': 0.36; 'url:library': 0.36; 'hi,': 0.37; 'setting': 0.37; 'subject:: ': 0.37; 'charset :us-ascii': 0.37; 'skip:g 20': 0.37; 'list.': 0.37; 'rather': 0.38; 'version': 0.38; 'mailing': 0.38; 'does': 0.39; 'url:microsoft': 0.39; 'easily': 0.39; 'mark': 0.40; 'your': 0.60; 'header:Message-Id:1': 0.62; 'more': 0.62; 'regional': 0.63; 'goal': 0.64; 'our': 0.64; 'importantly,': 0.66; 'python-list': 0.66; 'url:en-us': 0.66; 'url:lists': 0.66; 'sounds': 0.72; 'received:89': 0.80; 'pythonistas,': 0.84; 'route': 0.84; 'to:addr:yahoo.co.uk': 0.84; 'lucky': 0.93; 'panel.': 0.93 |
| To | Mark Lawrence <breamoreboy@yahoo.co.uk> |
| cc | python-list@python.org, lac@openend.se |
| From | Laura Creighton <lac@openend.se> |
| Subject | Re: programmatically change windows regional settings? |
| In-Reply-To | Message from Mark Lawrence <breamoreboy@yahoo.co.uk> of "Sun, 24 May 2015 14:07:37 +0100." <mjsif3$nvb$1@ger.gmane.org> |
| References | <1432471803.77701.BPMail_high_carrier@web163802.mail.gq1.yahoo.com><mjsif3$nvb$1@ger.gmane.org> |
| MIME-Version | 1.0 |
| Content-Type | text/plain; charset="us-ascii" |
| Content-ID | <4827.1432478726.1@fido> |
| Content-Transfer-Encoding | quoted-printable |
| Date | Sun, 24 May 2015 16:45:26 +0200 |
| X-Greylist | Sender IP whitelisted, not delayed by milter-greylist-4.3.9 (theraft.openend.se [89.233.217.130]); Sun, 24 May 2015 16:45:30 +0200 (CEST) |
| X-BeenThere | python-list@python.org |
| X-Mailman-Version | 2.1.20+ |
| Precedence | list |
| List-Id | General discussion list for the Python programming language <python-list.python.org> |
| List-Unsubscribe | <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe> |
| List-Archive | <http://mail.python.org/pipermail/python-list/> |
| List-Post | <mailto:python-list@python.org> |
| List-Help | <mailto:python-list-request@python.org?subject=help> |
| List-Subscribe | <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.23.1432478737.5151.python-list@python.org> (permalink) |
| Lines | 50 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1432478737 news.xs4all.nl 2852 [2001:888:2000:d::a6]:45839 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | csiph.com comp.lang.python:91186 |
Show key headers only | View raw
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 comp.lang.python | Previous | Next | Find similar | Unroll thread
Re: programmatically change windows regional settings? Laura Creighton <lac@openend.se> - 2015-05-24 16:45 +0200
csiph-web