0.8a1 on Windows with config file from OSX

Questions and bug reports for Beta releases should be posted here.
Forum rules
Help us help you:
  • Tell us what system you run SABnzbd on.
  • Adhere to the forum rules.
  • Do you experience problems during downloading?
    Check your connection in Status and Interface settings window.
    Use Test Server in Config > Servers.
    We will probably ask you to do a test using only basic settings.
  • Do you experience problems during repair or unpacking?
    Enable +Debug logging in the Status and Interface settings window and share the relevant parts of the log here using [ code ] sections.
Post Reply
Cpuroast
Release Testers
Release Testers
Posts: 69
Joined: December 15th, 2010, 11:19 pm

0.8a1 on Windows with config file from OSX

Post by Cpuroast »

I had created this config on 0.7.x on OSX and had copied it over to my Windows box, to avoid having to re-configure everything.

Under 0.7.x in Windows, it's been working perfectly fine as is, with the Macintosh line endings and all.

However the 0.8a1 upgrade process refused to take it in until I opened it in an editor and converted all line endings from Macintosh to DOS/Windows format and saved the file.

No idea if this is a bug/undesired behavior or actually intended, but I thought I would bring it to light.
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: 0.8a1 on Windows with config file from OSX

Post by shypike »

That's probably a side effect of the Latin-1 to Unicode conversion.
The hidden feature is more that the original format was not changed before.
I'll have a look at it, because I'm not sure the MSDOS format would be accepted on a Mac/Linux system.
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: 0.8a1 on Windows with config file from OSX

Post by shypike »

Was your INI file in the ancient Mac format, where every line ends in just a CR?
That one fails.
Unix and OSX style (LF only) files work fine on Windows, but they are converted to DOS-style.
Vice-versa doesn't go right either.

I have fixed the code to let both platforms handle each others format.
Cpuroast
Release Testers
Release Testers
Posts: 69
Joined: December 15th, 2010, 11:19 pm

Re: 0.8a1 on Windows with config file from OSX

Post by Cpuroast »

I just checked the ini file I have on osx which I would have copied to windows and it seems to be in Unix (LF) format.
Unless it was converted by sab in some later version after I had cloned it to Windows.

I'll try restoring an older version on Windows from my backup before I modified the format to make it compatible with 0.8 and see.
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: 0.8a1 on Windows with config file from OSX

Post by shypike »

Anyway, the Alpha should be a able to handle any consistent format.
Consistent in that every line has an LF and optionally a CR
or that every line ends in CR (no LFs).
Post Reply