Skip to content

Commit 382b68f

Browse files
committed
Use args_os(), to accept non-utf8 paths
1 parent 55c533b commit 382b68f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ use std::env;
33
use termion::color::{Bg, Fg, Reset, Rgb};
44

55
fn main() {
6-
if let Some(filename) = env::args().nth(1) {
6+
if let Some(filename) = env::args_os().nth(1) {
77
let image = image::open(&filename).unwrap();
88
let (height, width) = image.dimensions();
99
// Each row of characters in the terminal corresponds to two rows in the image.

0 commit comments

Comments
 (0)