Skip to content

Commit f0ed5c8

Browse files
authored
Merge pull request scp-fs2open#7407 from Goober5000/fix/coerce_to_utf8
fix coerce_to_utf8
2 parents abc5e87 + 66eb470 commit f0ed5c8

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

code/parse/parselo.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2568,6 +2568,7 @@ void coerce_to_utf8(SCP_string &buffer, const char *str)
25682568
if (isLatin1)
25692569
{
25702570
unicode::convert_encoding(buffer, str, unicode::Encoding::Encoding_iso8859_1, unicode::Encoding::Encoding_utf8);
2571+
return;
25712572
}
25722573

25732574
// unknown encoding, so just truncate

0 commit comments

Comments
 (0)