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


Groups > comp.lang.python > #100432

Re: cannot open file with non-ASCII filename

Path csiph.com!news.mixmin.net!weretis.net!feeder1.news.weretis.net!news.solani.org!.POSTED!not-for-mail
From Thomas 'PointedEars' Lahn <PointedEars@web.de>
Newsgroups comp.lang.python
Subject Re: cannot open file with non-ASCII filename
Date Mon, 14 Dec 2015 23:41:21 +0100
Organization PointedEars Software (PES)
Lines 30
Message-ID <4412672.gUIyRlH8Kf@PointedEars.de> (permalink)
References <n4mqgm$v1d$1@news2.informatik.uni-stuttgart.de> <566F0BD0.8020106@udel.edu> <mailman.15.1450119109.14916.python-list@python.org> <n4nepp$4nb$1@news2.informatik.uni-stuttgart.de>
Reply-To Thomas 'PointedEars' Lahn <usenet@PointedEars.de>
Mime-Version 1.0
Content-Type text/plain; charset="UTF-8"
Content-Transfer-Encoding 8Bit
X-Trace solani.org 1450132882 12765 eJwNyckBwDAIA7CZOGxgnBLC/iOk+gpG4Qkn6FhsjikvqR1fE6gtPTvhslN550/vlDW4dqMeHFERHg== (14 Dec 2015 22:41:22 GMT)
X-Complaints-To abuse@news.solani.org
NNTP-Posting-Date Mon, 14 Dec 2015 22:41:22 +0000 (UTC)
User-Agent KNode/4.14.2
X-User-ID eJwFwYkBwCAIA8CVLE+UcYKS/UfoXTo+3B1IRCo1g2vD06qOAwFWm4rm/aRpx+6llwtGntUM+jN5TTlfzg+Hexbm
Cancel-Lock sha1:ib7xaWOe/B9XNdD25LaLR2QdPgI=
X-NNTP-Posting-Host eJwFwYEBwCAIA7CXFITqOZSO/09YEp47GycjT0wM7VG7rM2u2kZdz8lRrcHNPoCXr09GAeQPOkcSQQ==
Xref csiph.com comp.lang.python:100432

Show key headers only | View raw


Ulli Horlacher wrote:

> Laura Creighton <lac@openend.se> wrote:
>> Given that Ulli is in Germany, latin-1 is likely to work fine for him.
> 
> For me, but not for my users. We have people from about 100 nations at our
> university.
> […]
> The problem is the input of these filenames.

Why do you have to use msvcrt?

I would use curses for user input, but:

,-<https://docs.python.org/2/howto/curses.html?highlight=user%20input>
,-<https://docs.python.org/3.2/howto/curses.html?highlight=user%20input>
| 
| No one has made a Windows port of the curses module. On a Windows 
| platform, try the Console module written by Fredrik Lundh. The Console 
| module provides cursor-addressable text output, plus full support for 
| mouse and keyboard input, and is available from 
| http://effbot.org/zone/console-index.htm.

So you should try that instead.

-- 
PointedEars

Twitter: @PointedEars2
Please do not cc me. / Bitte keine Kopien per E-Mail.

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


Thread

cannot open file with non-ASCII filename Ulli Horlacher <framstag@rus.uni-stuttgart.de> - 2015-12-14 16:24 +0000
  Re: cannot open file with non-ASCII filename Terry Reedy <tjreedy@udel.edu> - 2015-12-14 13:34 -0500
    Re: cannot open file with non-ASCII filename wxjmfauth@gmail.com - 2015-12-14 11:07 -0800
  Re: cannot open file with non-ASCII filename eryk sun <eryksun@gmail.com> - 2015-12-14 12:45 -0600
  Re: cannot open file with non-ASCII filename Laura Creighton <lac@openend.se> - 2015-12-14 19:51 +0100
    Re: cannot open file with non-ASCII filename Ulli Horlacher <framstag@rus.uni-stuttgart.de> - 2015-12-14 22:11 +0000
      Re: cannot open file with non-ASCII filename Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2015-12-14 23:41 +0100
        Re: cannot open file with non-ASCII filename Laura Creighton <lac@openend.se> - 2015-12-15 01:07 +0100
        Re: cannot open file with non-ASCII filename eryk sun <eryksun@gmail.com> - 2015-12-14 21:20 -0600
  Re: cannot open file with non-ASCII filename eryk sun <eryksun@gmail.com> - 2015-12-14 17:55 -0600
  Re: cannot open file with non-ASCII filename Laura Creighton <lac@openend.se> - 2015-12-15 01:13 +0100
    Re: cannot open file with non-ASCII filename Ulli Horlacher <framstag@rus.uni-stuttgart.de> - 2015-12-15 08:26 +0000
      Re: cannot open file with non-ASCII filename Laura Creighton <lac@openend.se> - 2015-12-15 15:09 +0100
      Re: cannot open file with non-ASCII filename eryk sun <eryksun@gmail.com> - 2015-12-15 09:34 -0600
        Re: cannot open file with non-ASCII filename Ulli Horlacher <framstag@rus.uni-stuttgart.de> - 2015-12-15 17:04 +0000
          Re: cannot open file with non-ASCII filename eryk sun <eryksun@gmail.com> - 2015-12-16 21:39 -0600
          Re: cannot open file with non-ASCII filename smap <askme.first@thankyouverymuch.invalid> - 2015-12-18 21:15 +0000
  cannot open file with non-ASCII filename bearmingo <bearmingo@gmail.com> - 2015-12-17 21:12 -0800
    Re: cannot open file with non-ASCII filename Terry Reedy <tjreedy@udel.edu> - 2015-12-18 01:37 -0500

csiph-web