encoding name sensitivity

This commit is contained in:
Roy Qu 2024-04-11 07:00:32 +08:00
parent 57c4b4d646
commit 88db0b283a
1 changed files with 1 additions and 1 deletions

View File

@ -401,7 +401,7 @@ QStringList Compiler::getCharsetArgument(const QByteArray& encoding,FileType fil
//qDebug()<<encodingName<<execEncodingName;
if (checkSyntax) {
result << "-finput-charset=" + encodingName;
} else if (encodingName!=execEncodingName) {
} else if (QString::compare(encodingName, execEncodingName, Qt::CaseInsensitive) != 0) {
result += {
"-finput-charset=" + encodingName,
"-fexec-charset=" + execEncodingName,