setCodec missing after rotation

Issue #2 resolved
raz repo owner created an issue

Hello, my application was crashing on each file rotation. (because I use a fake icudt51.dll to save space).

I solved the problem by re-setting the codec after rotation.

QsLogDestFile.cpp

if (mRotationStrategy->shouldRotate()) {
        mOutputStream.setDevice(NULL);
        mFile.close();
        mRotationStrategy->rotate();
        if (!mFile.open(QFile::WriteOnly | QFile::Text | mRotationStrategy->recommendedOpenModeFlag()))
            std::cerr << "QsLog: could not reopen log file " << qPrintable(mFile.fileName());
        mRotationStrategy->setInitialInfo(mFile);
        mOutputStream.setDevice(&mFile);
        //re-set the codec 
        mOutputStream.setCodec(QTextCodec::codecForName("UTF-8"));

    }

Note: imported from Qt components repo.