Rockbox

Tasklist

FS#10899 - Rockbox can't open some files with long filenames

Attached to Project: Rockbox
Opened by Tomer Shalev (tomers) - Thursday, 07 January 2010, 14:42 GMT
Last edited by Tomer Shalev (tomers) - Friday, 08 January 2010, 06:05 GMT
Task Type Bugs
Category Music playback
Status Closed
Assigned To No-one
Operating System Cowon D2
Severity Low
Priority Normal
Reported Version Daily build (which?)
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Rockbox can't open some files with long filenames, but standard firmware can. I.e. file with this name “J:\MUSIC\02 Rus1 (MFM02) [BS2B]\07 Патриаршие пруды (сборник авторской песни) (Приложение к журналу 'Stereo _ Video') (2001)\06 Зеленая карета (ст. О. Дриз, пер. Г. Сапгир, муз. А. Суханов).ogg” (from internal memory) (187 chars + 3 chars for extension).

Reported by foth from the forums in:
http://forums.rockbox.org/index.php?topic=10164.msg160449#msg160449

Confirmed on Cowon D2 r24194
Probably happens on other players as well.
This task depends upon

Closed by  Tomer Shalev (tomers)
Friday, 08 January 2010, 06:05 GMT
Reason for closing:  Invalid
Additional comments about closing:  Rockbox has a defined limitation of path length. MAX_PATH is 260 bytes (thanks, bluebrother - I haven't had time to look at the code myself).
Comment by Dominik Riebeling (bluebrother) - Thursday, 07 January 2010, 19:39 GMT
Pasting the filename into a text document and saving it in utf-8 encoding yields 288 bytes. MAX_PATH is 260 bytes, so it's not surprising that this path doesn't work.

0000000: 4a3a 5c4d 5553 4943 5c30 3220 5275 7331 J:\MUSIC\02 Rus1
0000010: 2028 4d46 4d30 3229 205b 4253 3242 5d5c (MFM02) [BS2B]\
0000020: 3037 20d0 9fd0 b0d1 82d1 80d0 b8d0 b0d1 07 .............
0000030: 80d1 88d0 b8d0 b520 d0bf d180 d183 d0b4 ....... ........
0000040: d18b 2028 d181 d0b1 d0be d180 d0bd d0b8 .. (............
0000050: d0ba 20d0 b0d0 b2d1 82d0 bed1 80d1 81d0 .. .............
0000060: bad0 bed0 b920 d0bf d0b5 d181 d0bd d0b8 ..... ..........
0000070: 2920 28d0 9fd1 80d0 b8d0 bbd0 bed0 b6d0 ) (.............
0000080: b5d0 bdd0 b8d0 b520 d0ba 20d0 b6d1 83d1 ....... .. .....
0000090: 80d0 bdd0 b0d0 bbd1 8320 2753 7465 7265 ......... 'Stere
00000a0: 6f20 5f20 5669 6465 6f27 2920 2832 3030 o _ Video') (200
00000b0: 3129 5c30 3620 d097 d0b5 d0bb d0b5 d0bd 1)\06 ..........
00000c0: d0b0 d18f 20d0 bad0 b0d1 80d0 b5d1 82d0 .... ...........
00000d0: b020 28d1 81d1 822e 20d0 9e2e 20d0 94d1 . (..... ... ...
00000e0: 80d0 b8d0 b72c 20d0 bfd0 b5d1 802e 20d0 ....., ....... .
00000f0: 932e 20d0 a1d0 b0d0 bfd0 b3d0 b8d1 802c .. ............,
0000100: 20d0 bcd1 83d0 b72e 20d0 902e 20d0 a1d1 ....... ... ...
0000110: 83d1 85d0 b0d0 bdd0 bed0 b229 2e6f 6767 ...........).ogg
0000120: 0a

Loading...