Jump to content
 







Main menu
   


Navigation  



Main page
Contents
Current events
Random article
About Wikipedia
Contact us
Donate
 




Contribute  



Help
Learn to edit
Community portal
Recent changes
Upload file
 








Search  

































Create account

Log in
 









Create account
 Log in
 




Pages for logged out editors learn more  



Contributions
Talk
 



















Contents

   



(Top)
 


1 Combinations of preservation and sensitivity  



1.1  Case-preserving, case-insensitive  





1.2  Non-case-preserving, case-insensitive  





1.3  Case-sensitive (results in case-preservation)  







2 Examples of file systems  





3 References  














Case preservation






Norsk bokmål

 

Edit links
 









Article
Talk
 

















Read
Edit
View history
 








Tools
   


Actions  



Read
Edit
View history
 




General  



What links here
Related changes
Upload file
Special pages
Permanent link
Page information
Cite this page
Get shortened URL
Download QR code
Wikidata item
 




Print/export  



Download as PDF
Printable version
 




Print/export  



















Appearance
   

 






From Wikipedia, the free encyclopedia
 


This is an old revision of this page, as edited by Guy Harris (talk | contribs)at10:14, 15 February 2024 (ce, give an example of case preservation.). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
(diff)  Previous revision | Latest revision (diff) | Newer revision  (diff)

The lowercase "a" and uppercase "A" are the two case variants of the first letter in the English alphabet.

Infile systems, case preservation is the preservation of the letter case (uppercase or lowercase) of letters in file names. If an attempt is made to create a file named "ThisIsAFile" on a file system that preserves letter case, the file's name will be "ThisIsAFile", rather than, for example, "thisisafile" or "THISISAFILE".

In contrast, a file system that does not preserve letter case will typically store letters in file names either as all lowercase or as all uppercase, and the letter case information will thus be lost.

Combinations of preservation and sensitivity

Case-preserving, case-insensitive

It is possible and common for a system to be case-insensitive, yet case-preserving. This combination is often considered most natural for people to understand, 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 capitalization is incorrect.

The operating systems macOS, current versions of Microsoft Windows and all versions of Amiga OS are case-preserving and case-insensitive in most cases. Since they are insensitive, one can optionally use any combination of lowercase or uppercase letters when requesting a file. However, since they are case sensitive, the file name will be presented in the combination of lower and upper case letters like the name of the file is saved.

This also means that one cannot save two files with the same name in the same place if the only difference in their file names is capitalization (lowercase or uppercase letters). For example, one cannot find readme.txt and Readme.tXT in the same folder.

Non-case-preserving, case-insensitive

A system that is non-case-preserving is necessarily also case-insensitive.

This applies, for example, to Identifiers (column and table names) in some relational databases (for example DB2, Interbase/Firebird, Oracle and Snowflake[1]), unless the identifier is specified within double quotation marks (in which case the identifier becomes case-sensitive).[2]

In a non-case-preserving system, arbitrary capitalization may be used by the system for storage and display, such as for example all letters being store in lowercase (or alternatively all in uppercase). For example, in Oracle Database, a table created with the name CustomersRegion1 will be stored as CUSTOMERSREGION1 (unless it is created under the name "CustomersRegion1", which means that the identifier will be treated as case-sensitive, and therefore must be referenced with that exact casing).

Case-sensitive (results in case-preservation)

Some systems are case sensitive, such as Linux. This means that there can be two files in the same folder whose only difference is capitalization. For example, readme.txt and Readme.tXT can be found in the same folder.

Examples of file systems

Some examples of file systems with various case-sensitivity and case-preservation are:

Case-sensitive Case-insensitive
Case-preserving UFS, ext3, ext4, HFS Plus (optional), NTFS (in unix), APFS (optional) VFAT, FAT32 which is basically always used with long filename support, NTFS, HFS Plus, APFS
Non-case-preserving Impossible FAT12, FAT16 only when without long filename support

References

  1. ^ "Identifier requirements | Snowflake Documentation". docs.snowflake.com. Retrieved 2024-02-08.
  • ^ "Database identifiers, quoting and case sensitivity". Lorenzo Alberton. Retrieved 2024-02-08.
  • t
  • e

  • Retrieved from "https://en.wikipedia.org/w/index.php?title=Case_preservation&oldid=1207654376"

    Categories: 
    Computer file systems
    Computer storage stubs
    Hidden categories: 
    Articles with short description
    Short description matches Wikidata
    Articles lacking sources from December 2009
    All articles lacking sources
    All stub articles
     



    This page was last edited on 15 February 2024, at 10:14 (UTC).

    This version of the page has been revised. Besides normal editing, the reason for revision may have been that this version contains factual inaccuracies, vandalism, or material not compatible with the Creative Commons Attribution-ShareAlike License.



    Privacy policy

    About Wikipedia

    Disclaimers

    Contact Wikipedia

    Code of Conduct

    Developers

    Statistics

    Cookie statement

    Mobile view



    Wikimedia Foundation
    Powered by MediaWiki