Only check for UTF8 sequence if no changes have been made

This commit is contained in:
HummyPkg 2017-03-10 09:08:37 +00:00
parent 88aa63c2ed
commit b5d879c5f3

View File

@ -78,7 +78,7 @@ xconv(char *src, char *dst, size_t dstlen)
continue;
}
if (is_utf_sequence(s))
if (!changed && is_utf_sequence(s))
return 0;
changed = 1;