Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #91187
| Path | csiph.com!usenet.pasdenom.info!news.redatomik.org!newsfeed.xs4all.nl!newsfeed3a.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <fomcl@yahoo.com> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.012 |
| X-Spam-Evidence | '*H*': 0.98; '*S*': 0.00; 'locale': 0.07; 'override': 0.07; 'url:msdn': 0.07; '(actually': 0.09; 'creighton': 0.09; 'lang': 0.09; 'cc:addr:python-list': 0.10; 'python': 0.11; '"this': 0.13; ':-)': 0.14; '(but': 0.15; '24,': 0.16; '>>on': 0.16; '>in': 0.16; 'initially,': 0.16; 'posted.': 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:2**0': 0.21; 'cc:addr:python.org': 0.21; 'affects': 0.22; 'lawrence': 0.22; 'to:2**1': 0.22; 'cc:no real name:2**0': 0.23; '2015': 0.23; "i've": 0.24; 'tried': 0.24; 'to:no real name:2**1': 0.27; "i'm": 0.29; 'cest': 0.29; 'helpful.': 0.29; 'maybe': 0.31; '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; 'done': 0.35; 'subject:skip:p 10': 0.35; 'list': 0.35; 'asking': 0.35; 'but': 0.36; 'too': 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; 'skip:- 20': 0.37; 'rather': 0.38; 'version': 0.38; 'does': 0.39; 'url:microsoft': 0.39; 'easily': 0.39; 'mark': 0.40; 'your': 0.60; 'more': 0.62; 'regional': 0.63; 'goal': 0.64; 'our': 0.64; 'importantly,': 0.66; 'python-list': 0.66; 'url:en-us': 0.66; 'received:98.137': 0.67; 'received:98.136': 0.70; 'received:gq1.yahoo.com': 0.72; 'received:mail.gq1.yahoo.com': 0.72; 'sounds': 0.72; 'pythonistas,': 0.84; 'received:bullet.mail.gq1.yahoo.com': 0.84; 'route': 0.84; 'to:addr:yahoo.co.uk': 0.84; 'lucky': 0.93; 'panel.': 0.93 |
| X-Yahoo-Newman-Property | ymail-3 |
| X-Yahoo-Newman-Id | 204345.13300.bm@omp1045.mail.gq1.yahoo.com |
| DKIM-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1432479870; bh=jlYe3WMIctOjejpY5B4495lDXwh7ZIDjmCK82NxaIT4=; h=Message-ID:Date:From:Subject:To:Cc:MIME-Version:Content-Type; b=ewC2eWa/Brh4Trn0PdfY7SL7TWiMr05BCanfb/MaEGsUL17q+3eywZXih9brX8f6q7riJI/VMSXwCu9yfbgwaiYliBgZ46HZtnEgNG3KCOuox8dM6HVxoXbZ2FUvoQKJbJXCDwPABZlY49b7xIJqC772zc6Rt/sgBqgmHlAJ8i8= |
| X-YMail-OSG | QwViaAgVM1l5bRVoo41IQKr1xycJjarsbtggYNGpxNlf3i3 .N89DLBlocM0iMyFL9aslWHtVsH0aO5Bb.ObotCKrvrNeOtMDb2CMryhkvAD nrv9HqX74linyLyrFR6tDOcy_RML9PI_q18fsQ2m7xK906xitEh37n6pG1po VmFyadDAwIXq0vggHHw1EUGZeqUASn35e.REVcZnm8rYrrMbr8p1fcLxCxq7 DIyTBdcbEj9gjmuqaKmOs7F9Bvyl.HYfRkeuT9yAYQS4qu_YGy7kw6uKDaHB fd5a_DQPWSCDVa4MbvoyiJwGkZe1u6wEx426DiGanfRS.zbaSqncN6E2OFgc cd.HaBiDO1d4cnfCsZ6eiYVgmLTAlS.xCaY7BciinplMrzAA46vPW6NVsA.B jWLcG_W.Zem4amcH7lGrhhlcKkLmeDXi1EQ0yLoZVIvyglwCdiLvSu1Hj7na EpFHx1b37rSDX_nIirnmmnTz0_V3YnuWd8gOIoHD_vpz4zbGr3O5BrKVbu3D 36An8r5KsQjwUZ8INTKXacKIHIZWNZs2fUMreKpJ8JU3JqmHHtcGCRRjIPap Wuw-- |
| X-Rocket-MIMEInfo | 002.001, Ci0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tDQpPbiBTdW4sIE1heSAyNCwgMjAxNSA0OjQ1IFBNIENFU1QgTGF1cmEgQ3JlaWdodG9uIHdyb3RlOg0KDQo.SW4gYSBtZXNzYWdlIG9mIFN1biwgMjQgTWF5IDIwMTUgMTQ6MDc6MzcgKzAxMDAsIE1hcmsgTGF3cmVuY2Ugd3JpdGVzOg0KPj5PbiAyNC8wNS8yMDE1IDEzOjUwLCBBbGJlcnQtSmFuIFJvc2thbSB2aWEgUHl0aG9uLWxpc3Qgd3JvdGU6DQo.Pg0KPj4gSGksDQo.Pg0KPj4gSW4gV2luZG93cyBJIGNhbiBjaGFuZ2UgdGhlIHJlZ2lvbmFsIHNldHQBMAEBAQE- |
| X-Mailer | YahooMailWebService/0.8.203.740 |
| Date | Sun, 24 May 2015 08:04:30 -0700 |
| From | Albert-Jan Roskam <fomcl@yahoo.com> |
| Subject | Re: programmatically change windows regional settings? |
| To | lac@openend.se, breamoreboy@yahoo.co.uk |
| Cc | python-list@python.org |
| MIME-Version | 1.0 |
| Content-Type | text/plain; charset=us-ascii |
| 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.24.1432480052.5151.python-list@python.org> (permalink) |
| Lines | 39 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1432480052 news.xs4all.nl 2857 [2001:888:2000:d::a6]:48727 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | csiph.com comp.lang.python:91187 |
Show key headers only | View raw
----------------------------- On Sun, May 24, 2015 4:45 PM CEST Laura Creighton wrote: >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. :-) That's indeed what I've done initially, but my message does not get posted. But maybe that list is moderated and I'm too impatient. But TIP is indeed the place to be for Tox-related questions.
Back to comp.lang.python | Previous | Next | Find similar | Unroll thread
Re: programmatically change windows regional settings? Albert-Jan Roskam <fomcl@yahoo.com> - 2015-05-24 08:04 -0700
csiph-web