« Very high quality iTunes AAC files now at Magnatune | Main | New Android App for Magnatune »

November 16, 2012

Comments

panzi

The safety margin is a good idea, because e.g. under a german Windows installation it is not "Documents and Settings" but the even longer "Dokumente und Einstellungen". However, under new Windows versions (at least Windows 7+) both "C:\Documents and Settings" and "C:\Dokumente und Einstellungen" are just symbolic links to "C:\Users" and I think therefore do not count. Look at all these symlinks, it's crazy: http://imgur.com/pRMjt

Nick

Eugh, that's crazy. XP I can forgive as it's many many years old, but Windows 7 not allowing long filenames to be dragged to the recycle bin? Hilarious. Another in the long list of reasons I'm happy to have moved to Debian a long time ago.

psywiped

Nick it's a NTFS filesystem limitation so its going to stick around till we get something new.

John

Actually, it's a Win32 API limitation (not NTFS). Also, it's not a variable, because that would imply you can change it. It's a #define in WinDef.h.

Unicode enabled APIs can bypass it by using full paths prepended with "\\?\" and get up to 32k file names. Unfortunately, there's a lot of stuff that doesn't support it (including Explorer), mostly due to legacy software and clueless "software developers" that give the rest of us a bad name. (All those symlinks Panzi mentioned are there for the clueless who hard code things like "C:\Documents and Settings\All Users\" in their software, instead of asking the OS where it's really supposed to go.)

The comments to this entry are closed.