This is the bug/patch tracker for Rockbox. Click here for more information.
Quick links: Bugs · Patches · Rockbox frontpage
FS#5794 - Bookmarks can't handle filenames with semicolons
Attached to Project:
Rockbox
Opened by Ben Keroack (bk) - Friday, 11 August 2006, 04:20 GMT+1
Last edited by Steve Bavin (pondlife) - Friday, 18 April 2008, 07:33 GMT+1
Opened by Ben Keroack (bk) - Friday, 11 August 2006, 04:20 GMT+1
Last edited by Steve Bavin (pondlife) - Friday, 18 April 2008, 07:33 GMT+1
|
DetailsThe bookmark system uses semicolons as field delimiters in the .bmark file. When filenames contain semicolons (which are legal in FAT32 AFAIK) any attempts to play bookmarks with them fail. An example filename would be "Track 01; The Beginning.mp3".
Bookmarks should be changed to be either line-delimited or to use a character such as forwardslash/backslash that cannot appear in valid filenames. |
This task depends upon
How did you manage to create semicolons in the filename? Windows should prevent doing so. In that way I think it's perfectly ok to fail on semicolons in filenames.
Page 29 of FAT32spec103.pdf:
> The following six special characters are now allowed in a long name. They are not legal in a short name.
> + , ; = [ ]
(But Linux ignores the FAT specs still in a couple of cases). Why not using a tab character as delimiter in bookmark files? This should be safe for every filesystem possible.
chosen as a new delimiter, encountering that char in a bookmark line
should be enough to conclude that the new format is being used, as old
entries can't include TABs or backslashes. If the new delimiter is not
found, then we could fallback to the old format with semicolon delimiters.