Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #19232

Trouble with internationalized path under windows

Path csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!gegeweb.org!de-l.enfer-du-nord.net!feeder2.enfer-du-nord.net!cs.uu.nl!news.stack.nl!newsfeed.xs4all.nl!newsfeed6.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail
Return-Path <jacob.hallen@sotospeak.se>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.030
X-Spam-Evidence '*H*': 0.94; '*S*': 0.00; 'ascii': 0.07; 'received:localnet': 0.07; 'locale': 0.09; 'solution,': 0.09; 'subject:windows': 0.09; 'baz': 0.16; 'missing?': 0.16; "haven't": 0.20; 'programs.': 0.23; 'path,': 0.23; 'windows': 0.26; 'import': 0.27; 'tried': 0.27; 'looks': 0.27; 'says': 0.27; 'fine.': 0.28; 'unicode': 0.28; 'problem': 0.29; 'subject:skip:i 10': 0.30; 'error': 0.30; 'version': 0.31; 'header:User-Agent:1': 0.33; 'to:addr:python-list': 0.33; 'character': 0.34; 'occurs': 0.34; 'reduced': 0.34; 'set.': 0.34; 'running': 0.35; 'things': 0.35; 'test': 0.35; 'file': 0.35; 'uses': 0.36; 'two': 0.37; 'but': 0.37; 'using': 0.37; 'despite': 0.38; 'subject:with': 0.38; 'characters': 0.38; 'files': 0.39; 'help': 0.39; 'to:addr:python.org': 0.40; 'your': 0.61; 'header:Message-Id:1': 0.62; 'strange': 0.68; 'russian': 0.77; 'non-unicode': 0.84
From Jacob Hallén <jacob.hallen@sotospeak.se>
Organization So to Speak AB
To python-list@python.org
Subject Trouble with internationalized path under windows
Date Sun, 22 Jan 2012 21:08:18 +0100
User-Agent KMail/1.13.7 (Linux/3.1.0-1-amd64; KDE/4.6.5; x86_64; ; )
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 <python-list.python.org>
List-Unsubscribe <http://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 <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.4937.1327263349.27778.python-list@python.org> (permalink)
Lines 32
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1327263349 news.xs4all.nl 6883 [2001:888:2000:d::a6]:42339
X-Complaints-To abuse@xs4all.nl
Xref x330-a1.tempe.blueboxinc.net comp.lang.python:19232

Show key headers only | View raw


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.

This is a version of my problem reduced to its essentials:

I have a file foo.py::

import bar

and a file bar.py :

baz = 42

If I store these two files  in say C:\Users\Admin\test everything works fine.

If I store them in C:\Users\Admin\testф, 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.

Am using WIndows 7 with a Swedish locale. The program uses Unicode 
successfully internally, and the Windows help says that the locale only 
applies to non-Unicode programs. I have tried with using characters from the 
Latin-1 character set in the path, ones that are not in the ASCII character 
set. In this case, things work fine.

What am  missing?

Back to comp.lang.python | Previous | NextNext in thread | Find similar | Unroll thread


Thread

Trouble with internationalized path under windows Jacob Hallén <jacob.hallen@sotospeak.se> - 2012-01-22 21:08 +0100
  Re: Trouble with internationalized path under windows Rick Johnson <rantingrickjohnson@gmail.com> - 2012-01-22 12:52 -0800
    Re: Trouble with internationalized path under windows Michael Torrie <torriem@gmail.com> - 2012-01-22 17:47 -0700
      Re: Trouble with internationalized path under windows Rick Johnson <rantingrickjohnson@gmail.com> - 2012-01-22 17:49 -0800
        Re: Trouble with internationalized path under windows Chris Angelico <rosuav@gmail.com> - 2012-01-23 19:17 +1100

csiph-web