Path: csiph.com!x330-a1.tempe.blueboxinc.net!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder2.hal-mli.net!gegeweb.42!gegeweb.eu!gegeweb.org!de-l.enfer-du-nord.net!feeder2.enfer-du-nord.net!txtfeed1.tudelft.nl!tudelft.nl!txtfeed2.tudelft.nl!amsnews11.chello.com!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.031 X-Spam-Evidence: '*H*': 0.94; '*S*': 0.00; 'received:localnet': 0.07; 'solution,': 0.09; 'subject:windows': 0.09; 'baz': 0.16; 'btw)': 0.16; 'hall\xc3\xa9n': 0.16; 'jacob': 0.16; 'wrote:': 0.16; 'jan': 0.19; "haven't": 0.20; 'header:In-Reply-To:1': 0.22; 'windows': 0.26; 'pm,': 0.26; 'import': 0.27; 'looks': 0.27; "i'm": 0.27; '(this': 0.28; 'fine.': 0.28; 'problem': 0.29; '22,': 0.30; 'subject:skip:i 10': 0.30; 'sun,': 0.30; 'error': 0.30; 'version': 0.31; 'header:User-Agent:1': 0.33; 'to:addr:python-list': 0.33; 'occurs': 0.34; 'reduced': 0.34; 'changing': 0.34; 'running': 0.35; 'test': 0.35; 'file': 0.35; 'keyboard': 0.36; 'two': 0.37; 'but': 0.37; 'using': 0.37; 'despite': 0.38; 'subject:with': 0.38; 'should': 0.38; 'files': 0.39; 'subject:: ': 0.39; 'to:addr:python.org': 0.40; 'your': 0.61; 'header:Message-Id:1': 0.62; 'strange': 0.68; 'russian': 0.77; 'i18n': 0.84 From: Jacob =?utf-8?q?Hall=C3=A9n?= Organization: So to Speak AB To: python-list@python.org Subject: Re: Trouble with internationalized path under windows Date: Sun, 22 Jan 2012 22:39:06 +0100 User-Agent: KMail/1.13.7 (Linux/3.1.0-1-amd64; KDE/4.6.5; x86_64; ; ) References: <201201222108.18950.jacob.hallen@sotospeak.se> In-Reply-To: MIME-Version: 1.0 Content-Type: Text/Plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 31 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1327268335 news.xs4all.nl 6867 [2001:888:2000:d::a6]:55848 X-Complaints-To: abuse@xs4all.nl Xref: x330-a1.tempe.blueboxinc.net comp.lang.python:19240 Sunday 22 January 2012 you wrote: > On Sun, Jan 22, 2012 at 12:08 PM, Jacob Hall=C3=A9n >=20 > wrote: > > I have a problem which ought to have an obvious solution, but I haven't > > found one despite searching for many hours. The problem occurs on > > Windows. > >=20 > > This is a version of my problem reduced to its essentials: > >=20 > > I have a file foo.py:: > >=20 > > import bar > >=20 > > and a file bar.py : > >=20 > > baz =3D 42 > >=20 > > If I store these two files in say C:\Users\Admin\test everything works > > fine. > >=20 > > If I store them in C:\Users\Admin\test=D1=84, I get an import error when > > running foo.py. The letter at the end of test is a Russian "F", if it > > looks strange on your terminal. >=20 I should add that I'm changing the path name by using the file manager in=20 Windows (this is Windows 7 btw) and changing my keyboard to a Russian=20 keyboard. This is a standard Windows i18n facility. Jacob Hall=C3=A9n