On 05/29/11 18:31, Lex Trotman wrote:
On 30 May 2011 10:43, Matthew Brushmbrush@codebrainz.ca wrote:
On 05/29/11 17:33, Jiří Techet wrote:
On Wed, May 25, 2011 at 22:16, Matthew Brushmbrush@codebrainz.ca wrote:
I think that would be best. Tag manager isn't really a binary format, but there's no reason to use a format that you can't punch in on a normal keyboard.
The tags are saved in tm_tag_write() using code like
fprintf(fp, "%c%d", TA_TYPE, tag->type);
so the file contains binary representation of integers and other types so it is a binary format.
It contains ASCII textual representations of integers doesn't it?
Not really, TA_TYPE is 204 and %c writes the character whose value is 204, assuming the system supports 8 bit characters I guess.
Yeah, maybe not in ASCII, but I wouldn't consider it "binary" anymore than any other zero-terminated text file containing chars > 127. For example, Geany can open these files (as ISO-8859-1) and edit them. Also it's not opened with "rb" mode, which I thought made a difference on Windows?
Anyway, it's mostly semantics, everything is binary really. The format is still non-standard and user-unfriendly.
Cheers, Matthew Brush