Skip to content

Commit

Permalink
Fix launching of pager so text is interpreted as UTF-8 by defautlt.
Browse files Browse the repository at this point in the history
This fixes issue #98
  • Loading branch information
ghuls committed May 22, 2018
1 parent 2712d63 commit 8869318
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/output.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ impl OutputType {
}
Command::new("less")
.args(&args)
.env("LESSCHARSET", "UTF-8")
.stdin(Stdio::piped())
.spawn()
.map(OutputType::Pager)
Expand Down

0 comments on commit 8869318

Please sign in to comment.