Fix launching of pager so text is interpreted as UTF-8 by default.
This fixes issue https://github.com/sharkdp/bat/issues/98
commit33bbf254684b3cff3f5af01b77ea83b452c9822b
authorGert Hulselmans <gert.hulselmans@kuleuven.vib.be>
dateTue 22 May 2018, 18:38 (8 years ago)
parent5ee8913
src/output.rs+1
@@ -26,6 +26,7 @@ impl OutputType {
2626 }
2727 Command::new("less")
2828 .args(&args)
29+ .env("LESSCHARSET", "UTF-8")
2930 .stdin(Stdio::piped())
3031 .spawn()
3132 .map(OutputType::Pager)