mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
filenames encoded to the filesystem encoding with surrogateescape error handler (to support undecodable bytes), instead of UTF-8 in strict mode.
This commit is contained in:
parent
5a7913eb3b
commit
4c7c8c3023
7 changed files with 69 additions and 28 deletions
|
@ -40,7 +40,7 @@ struct tok_state {
|
|||
int level; /* () [] {} Parentheses nesting level */
|
||||
/* Used to allow free continuations inside them */
|
||||
/* Stuff for checking on different tab sizes */
|
||||
const char *filename; /* For error messages */
|
||||
const char *filename; /* encoded to the filesystem encoding */
|
||||
int altwarning; /* Issue warning if alternate tabs don't match */
|
||||
int alterror; /* Issue error if alternate tabs don't match */
|
||||
int alttabsize; /* Alternate tab spacing */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue