#884101 cuetools: fails to convert .toc file generated by cdrdao (syntax error around # character)

Package:
cuetools
Source:
cuetools
Description:
tools for manipulating CUE/TOC files
Submitter:
Jonathan Dowland
Date:
2021-02-10 20:36:03 UTC
Severity:
normal
#884101#5
Date:
2017-12-11 12:37:33 UTC
From:
To:
Dear Maintainer,

cdrdao 1:1.2.3-3 is spitting out TOC files with lines like the following

    // Track 2
    TRACK AUDIO
    NO COPY
    PRE_EMPHASIS
    TWO_CHANNEL_AUDIO
    SILENCE 00:02:00
    FILE "quake_v1.01.bin" #33964032 0 05:08:29
    START 00:02:00

That hash-number on the FILE line corresponds to the byte offset for the track
(33964032 is the number of bytes of track 1 which is a data track). However this
syntax is not described in the cdrdao(1) manpage.

cueconvert complains about it

    12: syntax error
    bad character '#'
    ...

I'm filing this here because I guess cdrdao gets to invent its own file format
and is the arbiter of what is valid or not, but this could just as well be a bug
in cdrdao for not documenting a change to the format, if that's what has happened.

#884101#10
Date:
2017-12-11 12:42:07 UTC
From:
To:
I should add it has written out a cue file, but the indexes are
obviously wrong

...
TRACK 02 AUDIO
FLAGS PRE
INDEX 00 00:00:00
INDEX 01 00:00:16

TRACK 03 AUDIO
FLAGS PRE
INDEX 00 00:00:00
INDEX 01 00:00:25
...

#884101#15
Date:
2021-02-10 20:33:43 UTC
From:
To:
I just tried using cuetag, and got a rapid slew of

 > 10: syntax error

We find this on line 10

   08 |     TITLE "Matka"
   09 |     PERFORMER "A-Men"
 >>10 |     SIZE_INFO { 0,  1, 15,  0, 46,  8,  0,  0,  0,  0,  0,  0,
   11 |                 0,  0,  0,  0,  0,  0,  0,  3, 56,  0,  0,  0,
   12 |                 0,  0,  0,  0,  9,  0,  0,  0,  0,  0,  0,  0}

Removing this field and the following lines 11 and 12 allowed cuetag to
work.