I don't know if this is a bug or not, but I would appreciate comments on this possible problem. For reasons that I cannot explain, another person on our project managed to insert LF and CR control codes in Vorbis comments (FLAC files) in the following format:
In Windows XP systems, when viewing tags using the ALT-T interface, the presence of these two characters is indicated by two "empty box" symbols after the "equal" character and before the proper value associated with the field name. If you open the tag to edit it, you will see that the text comprising the value is on the second line in the edit field.
This anomaly is not easily noticed in Windows 7 systems. The tag shows up like this:
even though the two control codes precede the text comprising the value. We verified that they ae there using HxD, a hex editor application, to look at the file contents.
We know that the value is supposed to comprise only "text" characters from a UTF-8 compliant character set, not control codes. We are also under the impression that the characters comprising the value are supposed to immediately follow the equal sign. Perhaps this is not a requirement.
We are concerned that some applications designed to read metadata in FLAC files may not read them properly if there are unwanted control codes between the equal sign and the value proper.
The presence of the "empty box" characters as seen in XP-based systems is desirable in our opinion because it indicates the presence of these unwanted intruders. In Windows 7 systems, they are not readily detected. Whether or not they are a problem is not clear to us.
Thanks in advance for your comments and recommendations. Is it OK to ignore these?