ffutures: (Default)
ffutures ([personal profile] ffutures) wrote2010-09-05 07:09 pm

Good grief...

Photo file names at Wikimedia Commons are case sensitive. I accidentally saved one with the extension .JPG instead of .jpg and it has to be capitalised in anything that links to it!

Yes, I know this is true of web sites generally, but you have to use their site to upload, WHY don't they force lower case for the file extension?

[identity profile] pengshui-master.livejournal.com 2010-09-05 07:10 pm (UTC)(link)
Umm, because that would cause information loss. You lose at least 1 bit per character of the filename.

It's a Windows/posix thing really, posix systems (eg, Linux and I think MacOs) have case-sensitive filesystem , whereas Windows is case-insensitive (but case preserving). Since you don't know what case somebody has written the links in you cant be sure that squishing the case is the right thing.

[identity profile] ffutures.livejournal.com 2010-09-05 08:44 pm (UTC)(link)
This is only a problem when uploading the files, surely?

What I'm talking about is AFTER it's uploaded, when Wikimedia prompts you for a file name, and goes with whatever you type in, whether it's upper or lower case or (presumably) a mix of both.

[identity profile] pengshui-master.livejournal.com 2010-09-05 08:52 pm (UTC)(link)
I don't think it makes a difference when or where the case is munged.

Except that on the other hand it should possibly force the case to that of a file that exists (rather than upper/lower) in that particular instance.

[identity profile] turol.livejournal.com 2010-09-06 05:04 pm (UTC)(link)
Oh yes it does.

Lower/uppercasing text correctly is pretty damn hard. (http://zwitserloot.com/2010/08/04/case-insensitive-comparison-a-lot-more-complicated-than-you-might-think/)

[identity profile] heliograph.livejournal.com 2010-09-06 02:40 am (UTC)(link)
Because the Nanny State does not extend to the Internet?

[identity profile] ffutures.livejournal.com 2010-09-06 06:34 am (UTC)(link)
Yet they insist that my totally reasonable file name of DCF00065.JPG has to be changed...