As promised last night, I looked at this again this morning, but I'd just like to make sure we're fixing the right problem and all the right problems.
I have this feeling in the back of my mind that I read somewhere that the CGI standard is to use the "\r\n" line ending, and I have snippets in various bits of my code that seem to back this up. Anyone know if this is actually so?
It is. But I also don't care. Despite the name, I don't see CGI::Wiki as being anything to do with CGI scripts - it's an app that stores wiki nodes and associated metadata. And as such, I'd like to put unix line endings in the database, because I'm a unix nerd, and I think most people expect unix line endings.
I'm open to convincing that I'm wrong. But the CGI spec isn't a good reason.
I also realise that I'm not clear on how the problem is manifesting itself for you. Could you give more details please?
I'm hazy on the detains now, annoyingly. The problem was that some formatters (I can't remember which one any more, probably usemod..) were expecting a certain type of line ending. Hitting the wiki (from a mac?) was uploading data with other sorts of line endings, and the pages were getting formatted into one huge lump. I'll run something without the patch briefly and try to reproduce it.
tom