mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
bpo-46920: Remove code that has explainers why it was disabled (GH-31813)
This commit is contained in:
parent
a52f82baf2
commit
13b0412223
4 changed files with 0 additions and 64 deletions
|
@ -282,30 +282,6 @@ check_bom(int get_char(struct tok_state *),
|
|||
unget_char(ch1, tok);
|
||||
return 1;
|
||||
}
|
||||
#if 0
|
||||
/* Disable support for UTF-16 BOMs until a decision
|
||||
is made whether this needs to be supported. */
|
||||
} else if (ch1 == 0xFE) {
|
||||
ch2 = get_char(tok);
|
||||
if (ch2 != 0xFF) {
|
||||
unget_char(ch2, tok);
|
||||
unget_char(ch1, tok);
|
||||
return 1;
|
||||
}
|
||||
if (!set_readline(tok, "utf-16-be"))
|
||||
return 0;
|
||||
tok->decoding_state = STATE_NORMAL;
|
||||
} else if (ch1 == 0xFF) {
|
||||
ch2 = get_char(tok);
|
||||
if (ch2 != 0xFE) {
|
||||
unget_char(ch2, tok);
|
||||
unget_char(ch1, tok);
|
||||
return 1;
|
||||
}
|
||||
if (!set_readline(tok, "utf-16-le"))
|
||||
return 0;
|
||||
tok->decoding_state = STATE_NORMAL;
|
||||
#endif
|
||||
} else {
|
||||
unget_char(ch1, tok);
|
||||
return 1;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue