Windows XP's built-in unzipping functionality is not trustworthyThu, Dec 1, 2005 in Programming
Window’s XP’s integrated ZIP functionality (built into Windows Explorer) is not trustworthy. You should not rely on it to correctly unzip or show the contents of archives. The problem is related to special characters in filenames. If a filename has one of the forbidden characters, Windows XP simply doesn’t extract or show the files. A recent example is the 9rules media kit, which 9rules sent me when I was accepted to the network. I opened it at home but didn’t have time to make the requested changes to my site. I decided to do it after work, on my employer’s Windows XP machine, and was puzzled because some directories were missing. It turns out the directory had a colon in the name.
It isn’t really Windows’s fault; after all, Windows is just showing you the files it thinks are legal. You could argue the real problem is just an invalid (for Windows) archive. But I will stand my ground on this point: Windows should not be hiding errors from you. If Windows can’t open and display the contents of an archive, it should say so, and not lead you to believe everything worked. This is a basic principle of building reliable, correct software. You need to know when it fails (and in many cases, define fatal errors and explicitly disallow any efforts to recover, as is the case with XML).
I'm Baron Schwartz, the founder and CEO of VividCortex. I am the author of High Performance MySQL and many open-source tools for performance analysis, monitoring, and system administration. I contribute to various database communities such as Oracle, PostgreSQL, Redis and MongoDB.