vvfat: correctly create base short names for non-ASCII filenames
commit0c36111f57ec2188f679e7fa810291b7386bdca1
authorHervé Poussineau <hpoussin@reactos.org>
Mon, 22 May 2017 21:12:01 +0000 (22 23:12 +0200)
committerKevin Wolf <kwolf@redhat.com>
Mon, 10 Jul 2017 11:18:05 +0000 (10 13:18 +0200)
treed5c96703418e68e59e5536c8221e5faaa1e4c15a
parent09ec4119fb5a48f6783c23e275e698d977a11ca9
vvfat: correctly create base short names for non-ASCII filenames

More specifically, create short name from filename and change blacklist of
invalid chars to whitelist of valid chars.

Windows 9x also now correctly see long file names of filenames containing a space,
but Scandisk still complains about mismatch between SFN and LFN.

[kwolf: Build fix for this intermediate patch (it included declarations
 for variables that are only used in the next patch) ]

Specification: "FAT: General overview of on-disk format" v1.03, pages 30-31
Signed-off-by: Hervé Poussineau <hpoussin@reactos.org>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
block/vvfat.c