--- origs/linux-2.4-benh.dist/fs/fat/dir.c Wed Oct 10 07:11:32 2001 +++ linux/fs/fat/dir.c Wed Oct 10 21:07:04 2001 @@ -232,6 +232,10 @@ memcpy(&unicode[offset], ds->name0_4, 10); memcpy(&unicode[offset+10], ds->name5_10, 12); memcpy(&unicode[offset+22], ds->name11_12, 4); + + for(i = offset; i < offset + 26; i += 2) + __le16_to_cpus((wchar_t *)&unicode[i]); + offset += 26; if (ds->id & 0x40) { @@ -430,6 +435,10 @@ memcpy(&unicode[offset], ds->name0_4, 10); memcpy(&unicode[offset+10], ds->name5_10, 12); memcpy(&unicode[offset+22], ds->name11_12, 4); + + for(i = offset; i < offset + 26; i += 2) + __le16_to_cpus((wchar_t *)&unicode[i]); + offset += 26; if (ds->id & 0x40) {