mirror of
https://github.com/sharkdp/bat
synced 2024-11-16 21:25:56 +00: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:
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)
|
||||||
|
Loading…
Reference in New Issue
Block a user