Fix one-off in STEPFileEncoding causing UTF32 character decoding to fail.
parent
880cb473b0
commit
78faabf0fa
|
@ -332,7 +332,7 @@ bool STEP::StringToUTF8(std::string& s)
|
||||||
case '4':
|
case '4':
|
||||||
if (s[i+3] == '\\') {
|
if (s[i+3] == '\\') {
|
||||||
const size_t basei = i+4;
|
const size_t basei = i+4;
|
||||||
size_t j = basei, jend = s.size()-4;
|
size_t j = basei, jend = s.size()-3;
|
||||||
|
|
||||||
for (; j < jend; ++j) {
|
for (; j < jend; ++j) {
|
||||||
if (s[j] == '\\' && s[j] == 'X' && s[j] == '0' && s[j] == '\\') {
|
if (s[j] == '\\' && s[j] == 'X' && s[j] == '0' && s[j] == '\\') {
|
||||||
|
|
Loading…
Reference in New Issue