Text-mode apps (Was :Who are the "spacists"?)

Chris Angelico rosuav at gmail.com
Sat Apr 1 17:00:49 EDT 2017


On Sun, Apr 2, 2017 at 6:47 AM, Marko Rauhamaa <marko at pacujo.net> wrote:
> You are stuck with the axiom that pathname and its representation are
> one and the same thing.
>
> URI's make the distinction clear. Say you wanted to express a resource
>
>    päätyö/2
>
> as part of a URI. URIs are to contain a subset of ASCII only so an
> encoding scheme has been devised. That resource is expressed like this:
>
>    p%c3%a4%c3%a4ty%c3%b6%2f2
>
> A far more convenient escaping scheme could have been devised for
> pathnames.

Definitely. We should treat file names like domain names. "Bücher.ch"
gets represented internally as "xn--bcher-kva.ch". That would solve
all the problems, and there's no way that it could create more.

ChrisA



More information about the Python-list mailing list