Re: [linux-minidisc] Presentation and issues with mz-n710


(I put the list back in the recipient list)

Am Samstag, den 17.09.2011, 10:15 +0200 schrieb Thomas Arp:
> As far as i remember on testing the python scripts, i´vehad some
> problems downloading a track if it is opened in text mode because of
> different line endings. Changing this to open the file in binary mode
> should work better, but this depends on how the file was created. 
In fact, this bug is again in the C code, to be exact, it is line 510 of
netmdcli.c, but this bug does not affect Linux systems, just Windows
systems. And the *only* correct mode to read a binary file is opening it
in binary mode. If the file was created in "text mode", and thus can be
read in text mode yielding correct results, the file already is broken
by definition.
Linux spoils programmers by not making any difference between these
modes, so if you develop on Linux, you don't notice bugs like this. The
effect of this bug would be that certain files fail to upload reliably,
regardless of disk fill level.

Anyhow, I just committed the fix for the Problem you mentioned into the
git repository. I still expect Enrique to have used netmdcli on Linux or
MacOS (as your Windows build fix is only in since short time) where the
binary mode makes no difference.

Regards,
  Michael Karcher