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

This fixes issue https://github.com/sharkdp/bat/issues/98
This commit is contained in:
Gert Hulselmans authored and David Peter committed 2018-05-22 22:41:58 +02:00
1 parent 5ee8913538
commit 33bbf25468
1 file changed
+1
+1
View File
@@ -26,6 +26,7 @@ impl OutputType {
}
Command::new("less")
.args(&args)
.env("LESSCHARSET", "UTF-8")
.stdin(Stdio::piped())
.spawn()
.map(OutputType::Pager)