[mythtv] [mythtv-commits] Ticket #3072: MythGame: Apostrophe or single quote in filename breaks selection.
Michael T. Dean
mtdean at thirdcontact.com
Wed Nov 7 17:47:32 UTC 2007
On 11/07/2007 11:50 AM, MythTV wrote:
> #3072: MythGame: Apostrophe or single quote in filename breaks selection.
>
>
> Comment(by anonymous):
>
> Well, I suppose for 'clueless Windows uses' this might be a good fix - but
> not really relevant for intelligent people that recognize that apostrophes
> and quotes, spaces, slashes, and other cli-significant characters dont
> belong in filenames to begin with., and if for some reason they encounter
> such a file, automatically rename away the offending characters.
>
> Personally, I'd be happy if all unix-based filesystems automatically
> converted such characters to single dots anytime they were used.
>
After all, that /is/ the Unix way: do what the user means, not what the
user says because the system is infinitely smarter than a mere user.
Oh, wait. That's the Windows way, not the Unix way. Unix does exactly
what you ask of it.
> Sane characters to use in filenames: Alphabetic a thru z (Upper and
> lowercase), numberic digits, dash, underscore, colon, plus, tilde and dot.
>
Funny...
In MS Windows FAT filesystem, filenames may not use:
" * / : < > ? \ |
control characters 0-31
DEL
and can only use:
+ , . ; = [ ]
with FAT32.
In Unix and NTFS, filenames may use any character other than forward
slash ("/") and NULL. (Though NTFS supports the characters:
\ : * ? " < > |
the Win32 subsystem prevents their use in filenames.)
> Characters only idiots or morons use: spaces, slashes, ticks, quotes,
> asterisk, dollar-sign, commas, pipes, greater/less than, ampersand, etc.
>
So, what you want is actually closer to what Windows does (ever think
about switching?), though Windows still allows morons to use:
' $ , &
and space.
Thanks, though, for your input.
Mike "idiot, a.k.a., moron" Dean
(I don't use these characters in filenames, but because I don't like to
type them. However, I am definitely not an "intelligent [person] that
recognize[s] that apostrophes and quotes, spaces, slashes and other
cli-significant characters don't belong in filenames to begin with.")
More information about the mythtv-dev
mailing list