Re: Copying file with bad utf byte sequence in filename to rw UDFfilesystem panics

From: Jan Kara
Date: Wed Feb 04 2009 - 14:08:29 EST


On Fri 30-01-09 00:48:55, Andrew Basterfield wrote:
> Binary package hint: linux-image-2.6.24-22-generic
>
> I have a file on ext3 that has a spurious 0x8A char in it's filename.
> When I try to copy it to a R/W UDF volume I get a kernel panic.
>
> $ ls Air\ -\ Le\ Soleil\ Est\ Pr�s\ De\ Moi.mp3 | hexdump -C
> 00000000 41 69 72 20 2d 20 4c 65 20 53 6f 6c 65 69 6c 20 |Air - Le Soleil |
> 00000010 45 73 74 20 50 72 8a 73 20 44 65 20 4d 6f 69 2e |Est Pr.s De Moi.|
> 00000020 6d 70 33 0a |mp3.|
> 00000024
>
> The filesystem has to be mounted with iocharset=utf8
>
> Is this related to http://lkml.org/lkml/2008/1/30/483
OK, attached patch should fix your problem.

Honza
--
Jan Kara <jack@xxxxxxx>
SUSE Labs, CR