Format of options file

Colin Law clanlaw at gmail.com
Mon Mar 5 03:38:15 PST 2018


On 3 March 2018 at 11:09, Ralph Corderoy <ralph at inputplus.co.uk> wrote:
>
> Hi Richard,
>
> > ') - using defaultalue for --ffmpeg-loglevel ('info
> >
> > If I enter the options again with --prefs-add they work correctly, so
> > it is no big deal.  Any ideas what is happening?
>
> That line above seems to be overprinting the «')» at the start of the
> line suggesting there's an ASCII CR, carriage return, after the `info'
> as if a Unix system was reading a POSIX text file of lines ending in
> ASCII LF, linefeed, but being fed a DOS one with CR LF pairs.


Are we certain that the problem has been correctly analysed?  The line
shown above appears to have a CR after info and before the quote sign,
which would not be valid on either system.  In practice it may work on
Windows if the code just ignores CR characters wherever they are.  Is
it certain that a correctly formatted windows file will definitely not
work on Linux?

On 3 March 2018 at 11:09, Ralph Corderoy <ralph at inputplus.co.uk> wrote:
> Hi Richard,
>
>> ') - using defaultalue for --ffmpeg-loglevel ('info
>>
>> If I enter the options again with --prefs-add they work correctly, so
>> it is no big deal.  Any ideas what is happening?
>
> That line above seems to be overprinting the «')» at the start of the
> line suggesting there's an ASCII CR, carriage return, after the `info'
> as if a Unix system was reading a POSIX text file of lines ending in
> ASCII LF, linefeed, but being fed a DOS one with CR LF pairs.
>
> `od -c foo' will show them, and they can be removed with `sed -i
> 's/\r$//' foo'.
>
> --
> Cheers, Ralph.
> https://plus.google.com/+RalphCorderoy
>
> _______________________________________________
> get_iplayer mailing list
> get_iplayer at lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/get_iplayer



More information about the get_iplayer mailing list