public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] [BUG] fs: fat: incorrect creation of files with Unicode file name
@ 2019-11-12 23:53 Heinrich Schuchardt
  2019-11-27  6:17 ` AKASHI Takahiro
  0 siblings, 1 reply; 2+ messages in thread
From: Heinrich Schuchardt @ 2019-11-12 23:53 UTC (permalink / raw)
  To: u-boot

In the UEFI Shell I create a file with

FS0:\> echo привет_мир.текст > привет_мир.текст

FS0:\> ls
Directory of: FS0:\
00/00/0000  00:00                  38  привет_мир.текст

The U-Boot console shows it correctly:

=> ls scsi 0:1
        38   привет_мир.текст

Now in Linux I mount the volume. ls shows an incorrect filename:

 > ls /mnt
'пÑ'$'\302\200''ивеÑ'$'\302\202''_миÑ'$'\302\200''.Ñ'$'\302\202''екÑ'$'\302\201''Ñ'$'\302\202'

Now in Linux I create a file

# echo привет_мир.текст > /mnt/привет_мир.текст

U-Boot shows the file name incorrectly

=> ls scsi 0:1
        31   ?@825B_<8@.B5:AB

So U-Boot seems not to convert file names correctly to UTF-16 before saving.

Best regards

Heinrich

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2019-11-27  6:17 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-11-12 23:53 [U-Boot] [BUG] fs: fat: incorrect creation of files with Unicode file name Heinrich Schuchardt
2019-11-27  6:17 ` AKASHI Takahiro

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox