1
0
mirror of https://github.com/sharkdp/bat.git synced 2025-07-18 14:54:47 +02:00

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
2018-05-22 18:38:59 +02:00
committed by David Peter
parent 5ee8913538
commit 33bbf25468

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