mirror of
https://github.com/starovoid/rxing.git
synced 2026-07-26 12:22:34 +00:00
mostly passing
This commit is contained in:
@@ -2537,7 +2537,12 @@ impl CharacterSetECI {
|
||||
* but unsupported
|
||||
*/
|
||||
pub fn getCharacterSetECI(charset: &'static dyn Encoding) -> Option<CharacterSetECI> {
|
||||
match charset.name() {
|
||||
let name = if let Some(nm) = charset.whatwg_name() {
|
||||
nm
|
||||
}else {
|
||||
charset.name()
|
||||
};
|
||||
match name {
|
||||
"CP437" => Some(CharacterSetECI::Cp437),
|
||||
"iso-8859-1" => Some(CharacterSetECI::ISO8859_1),
|
||||
"iso-8859-2" => Some(CharacterSetECI::ISO8859_2),
|
||||
|
||||
Reference in New Issue
Block a user