public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: AKASHI Takahiro <takahiro.akashi@linaro.org>
To: u-boot@lists.denx.de
Subject: [U-Boot] [BUG] fs: fat: incorrect creation of files with Unicode file name
Date: Wed, 27 Nov 2019 15:17:29 +0900	[thread overview]
Message-ID: <20191127061727.GO22427@linaro.org> (raw)
In-Reply-To: <cdbd9a40-4a7a-7d59-160c-c5918bee0877@gmx.de>

On Wed, Nov 13, 2019 at 12:53:17AM +0100, Heinrich Schuchardt wrote:
> 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.

No conversion from/to UTF-16 takes place at a long file name
entry in the current FAT file system.
If we implement this, it will end up with incompatibility
of (meta) data with existing media.

-Takahiro Akashi

> Best regards
> 
> Heinrich

      reply	other threads:[~2019-11-27  6:17 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20191127061727.GO22427@linaro.org \
    --to=takahiro.akashi@linaro.org \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox