Use toLocal8Bit instead of toUtf8

It's the most "proper" way to do it, i guess in real world scenarios it
doesn't really matter though
This commit is contained in:
Albert Astals Cid 2018-04-23 23:08:06 +02:00
parent c559268987
commit 991eb0ed31

View file

@ -2766,7 +2766,7 @@ bool Part::saveAs( const QUrl & saveUrl, SaveAsFlags flags )
const mode_t mask = umask( 0 );
umask( mask );
const mode_t fileMode = 0666 & ~mask;
chmod( saveFilePath.toUtf8().constData(), fileMode );
chmod( saveFilePath.toLocal8Bit().constData(), fileMode );
}
#endif