mirror of
https://github.com/RustPython/RustPython.git
synced 2026-06-09 22:49:57 +09:00
Fix comparison in codecs.rs that always failed
This commit is contained in:
@@ -530,7 +530,7 @@ fn get_standard_encoding(encoding: &str) -> (usize, StandardEncoding) {
|
||||
}
|
||||
}
|
||||
return (byte_length, standard_encoding);
|
||||
} else if encoding.to_lowercase() == "CP_UTF8" {
|
||||
} else if encoding == "CP_UTF8" {
|
||||
return (3, StandardEncoding::Utf8);
|
||||
}
|
||||
(0, StandardEncoding::Unknown)
|
||||
|
||||
Reference in New Issue
Block a user