Skip to main content

is_known_encoding

Function is_known_encoding 

Source
pub fn is_known_encoding(label: &str) -> bool
Expand description

Whether label names an encoding Git can decode (ISO-8859-1 or any encoding resolvable via resolve). Unknown names (e.g. the test’s non-utf-8) return false, matching Git’s logmsg_reencode no-op fallback.