From f41ed2f41fd09e0680e72bbe84f8b899fd802540 Mon Sep 17 00:00:00 2001 From: Kim Kulling Date: Wed, 8 Nov 2017 01:07:04 +0100 Subject: [PATCH] closes https://github.com/assimp/assimp/issues/1251: use correct lookup for utf32. --- code/STEPFileEncoding.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/STEPFileEncoding.cpp b/code/STEPFileEncoding.cpp index f9a9dd1ce..7204f802b 100644 --- a/code/STEPFileEncoding.cpp +++ b/code/STEPFileEncoding.cpp @@ -334,7 +334,7 @@ bool STEP::StringToUTF8(std::string& s) size_t j = basei, jend = s.size()-3; for (; j < jend; ++j) { - if (s[j] == '\\' && s[j] == 'X' && s[j] == '0' && s[j] == '\\') { + if (s[j] == '\\' && s[j+1] == 'X' && s[j+2] == '0' && s[j+3] == '\\') { break; } }