G
G
georgeee2012-12-01 07:24:12
Microsoft
georgeee, 2012-12-01 07:24:12

FAT12/FAT16/FAT32 encoding created via mkdosfs?

Hello!
The university gave the task - to implement the reading of FAT file systems. I wrote everything according to the specification, checked it on flash drives - everything works no worse than a Swiss watch. But there is one oddity: when I check on the images received by the command mkdosfs -n "FAT image" -F 16, the whole structure is read as it should, but the file names in Russian are read incorrectly. The FAT specification specifies UTF-16 encoding, I implemented reading with it. On flash drives (different) everything works. On the images - kryakozyabry. The images are perfectly connected / disconnected and no problems are felt through the standard Linux utilities.
Duck how to read names in FAT?
PS My code is on github: github.com/georgeee/FAT-Master

Answer the question

In order to leave comments, you need to log in

1 answer(s)
J
jcmvbkbc, 2012-12-01
@jcmvbkbc

I created an image to play around with, I see that in long names, at least the byte order is little endian.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question