Fix encoding for email & name, fix qrencode command in repl

This commit is contained in:
jikstra
2019-09-04 16:37:45 +02:00
committed by holger krekel
parent ff6a4d18cf
commit ae612e07dc
2 changed files with 7 additions and 4 deletions

View File

@@ -525,7 +525,7 @@ unsafe fn handle_cmd(line: &str, ctx: Arc<RwLock<Context>>) -> Result<ExitResult
}
println!("{}", qr);
let output = Command::new("qrencode")
.args(&["-t", "ansiutf8", format!("\"{}\"", qr.as_str()).as_str(), "-o", "-"])
.args(&["-t", "ansiutf8", qr.as_str(), "-o", "-"])
.output()
.expect("failed to execute process");
io::stdout().write_all(&output.stdout).unwrap();