I think the problem in question is that I'm passing the strings to the I/O functions directly, from the looks of it they should be converted to QByteArray first to resolve encoding problems. I can make the problem happen even on my Linux system.
EDIT: Hmm, maybe it's better to just drop C-style fopen() and friends completely and just use QFile...
EDIT: Hmm, maybe it's better to just drop C-style fopen() and friends completely and just use QFile...