Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #19232
| From | Jacob Hallén <jacob.hallen@sotospeak.se> |
|---|---|
| Organization | So to Speak AB |
| Subject | Trouble with internationalized path under windows |
| Date | 2012-01-22 21:08 +0100 |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.4937.1327263349.27778.python-list@python.org> (permalink) |
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 | Next — Next in thread | Find similar | Unroll 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