Visitar URL original
gh-96268: Fix loading invalid UTF-8 by mdboom · Pull Request #96270 · python/cpython · GitHub
Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix reference to other decoding function
  • Loading branch information
mdboom committed Aug 31, 2022
commit ad4de7ab311929e31decff436d1da96ab4e0e7d8
2 changes: 1 addition & 1 deletion Parser/tokenizer.c
Original file line number Diff line number Diff line change
Expand Up @@ -490,7 +490,7 @@ static void fp_ungetc(int c, struct tok_state *tok) {
/* Check whether the characters at s start a valid
UTF-8 sequence. Return the number of characters forming
the sequence if yes, 0 if not. The special cases match
those in stringlib/codecs.h:decode_utf8.
those in stringlib/codecs.h:utf8_decode.
*/
static int valid_utf8(const unsigned char* s)
Comment thread
mdboom marked this conversation as resolved.
Outdated
{
Expand Down