FAT: restore all lowercase labels, the behavior from r1beta4.

Change-Id: If65e2899b841cfb6be68b7f896a0cb199098232d
Reviewed-on: https://review.haiku-os.org/c/haiku/+/8530
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
Haiku-Format: Haiku-format Bot <no-reply+haikuformatbot@haiku-os.org>
Reviewed-by: Axel Dörfler <axeld@pinc-software.de>
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
This commit is contained in:
Jérôme Duval 2024-11-09 13:27:23 +01:00 committed by Axel Dörfler
parent 4bfc14b6c7
commit 1e3e4210de

View File

@ -239,7 +239,7 @@ label_to_fat(char* label)
/*! Convert a volume label from the format stored on disk into a normal string.
@param name A character array of length 11 or a C string of size 12.
@post Name is null-teriminated after the last non-space character.
@post Name is null-terminated after the last non-space character, and converted to lower case.
*/
void
label_from_fat(char* name)
@ -250,6 +250,11 @@ label_from_fat(char* name)
break;
}
name[i + 1] = 0;
for (; i >= 0; i--) {
if (name[i] >= 'A' && name[i] <= 'Z')
name[i] += 'a' - 'A';
}
}