Fix launching of pager so text is interpreted as UTF-8 by default.

This fixes issue https://github.com/sharkdp/bat/issues/98
pull/149/head
Gert Hulselmans 6 years ago committed by David Peter
parent 5ee8913538
commit 33bbf25468

@ -26,6 +26,7 @@ impl OutputType {
}
Command::new("less")
.args(&args)
.env("LESSCHARSET", "UTF-8")
.stdin(Stdio::piped())
.spawn()
.map(OutputType::Pager)

Loading…
Cancel
Save