diff --git a/txtlang-gen/src/main.rs b/txtlang-gen/src/main.rs index 4597303..52c46c1 100644 --- a/txtlang-gen/src/main.rs +++ b/txtlang-gen/src/main.rs @@ -37,6 +37,8 @@ fn main() -> Result<()> { loop { match reader.read_event(&mut buf) { Ok(Event::Start(ref e)) if e.name() == b"localeDisplayNames" => { + buf.clear(); + results.extend(parse::locale_display_names(&mut reader, &mut buf)); } Err(e) => panic!("Error at position {}: {:?}", reader.buffer_position(), e),