FAT: issues with lowercase 8.3 filenames
- Using an NT-based Windows such as Windows XP (this is crucial - see below), create a file with an entirely lowercase but 8.3 filename, such as "example.txt".
- Mount the FAT/FAT32 partition in Haiku for reading and writing.
- Open the file, modify it, save it, and close it.
- Try to open it again. You won't be able to do it. Additionally, if you used Pe to save it, it will complain with an error. This is a sign that something is wrong.
- Unmount the partition and mount it again.
- You will see that the file's name has been changed to uppercase (as of hrev47617). I have also seen files get corrupted (on alpha 4.1 at least), but I cannot reliably reproduce that.
My guess is that when recreating the file's directory entry, Haiku ignores the two flags that NT-based Windows uses to indicate lowercase 8.3 filenames. See: https://en.wikipedia.org/wiki/Design_of_the_FAT_file_system#VFAT_long_file_names ("If a filename contains only lowercase letters...")