Case preservation
From Wikipedia, the free encyclopedia
When a computer file system stores text, the computer may keep or discard case information. When the case is stored, it is called case preservation.
A system that is not case-preserving is necessarily case-insensitive, but it is possible and common for a system to be both case-insensitive and case-preserving. This combination is often considered most natural for computer uses, because most people prefer using the correct capitalization but will still recognize others. For example, if someone refers to the "uNiTeD states oF AMERICA", it is understood to mean the United States of America, even though the common capitalization looks better.
Mac OS X, the current versions of the Microsoft Windows operating systems and all versions of Amiga OS are case-preserving and case-insensitive in most cases. Since they are case-insensitive, when requesting a file by name any capitalization can be used, in contrast to case-sensitive systems where only a single capitalization would work. But as they are case-preserving, when viewing a file's name it will be presented with the capitalization used when the file was created. On a non-case-preserving system, arbitrary capitalization would be displayed instead, such as all-upper-case.
Examples of systems with various case-sensitivity and case-preservation exist among file systems:
Case-sensitive | Case-insensitive | |
---|---|---|
Case-preserving | UFS, ext3, HFS Plus (optional) | NTFS, HFS Plus |
Non-case-preserving | Impossible | FAT16, VFAT |