Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Reset utf8 pointer to point at original string before using
When an invalid utf8 sequence is found the original string is parsed again in order to figure out where in the string the problem occurs so that it will be possible to print out the bytes surrounding the error in the exception msg. The problem is that when trying to print out the bytes around the parse error the 'utf8' pointer is used. This pointer no longer points to the start of the erroneous string since it has just been used in a loop where each iteration increments it. Fixed by restoring it so that it points to the start of the string once again. This fixes M#1208
- Loading branch information