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


Groups > comp.lang.python > #44933

Re: Making safe file names

Date 2013-05-07 21:21 -0500
From Andrew Berg <bahamutzero8825@gmail.com>
Subject Re: Making safe file names
References <51895D03.4000300@gmail.com> <518998FE.6030805@davea.name> <5189A18C.5060109@gmail.com> <5189A6A7.4040104@davea.name>
Newsgroups comp.lang.python
Message-ID <mailman.1438.1367979705.3114.python-list@python.org> (permalink)

Show all headers | View raw


On 2013.05.07 20:13, Dave Angel wrote:
> So you're comfortable typing arbitrary characters?  what about all the 
> characters that have identical displays in your font?
Identification is more important than typing. I can copy and paste into a terminal if necessary. I don't foresee typing out one of the
filenames being anything more than a rare occurrence, but I will occasionally just read the list.
> What about viewing 
> 0x07 in the terminal window?  Or 0x04?
I don't think Last.fm will even send those characters. In any case, control characters in artist names are rare enough that it's not worth
the trouble to write the code to avoid the problems associated with them.
> As soon as you have a small, finite list of invalid characters, writing 
> an escape system is pretty easy.
Probably. I was just hoping there was an existing system that would work, but as I said in a different reply, it would seem I need to roll
my own.

-- 
CPython 3.3.1 | Windows NT 6.2.9200 / FreeBSD 9.1

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


Thread

Re: Making safe file names Andrew Berg <bahamutzero8825@gmail.com> - 2013-05-07 21:21 -0500

csiph-web