@@ -436,3 +436,15 @@ fn config_read_arguments_from_file() {
436 .success()
436 .success()
437 .stdout("dummy-pager-from-config\n");
437 .stdout("dummy-pager-from-config\n");
442+ // The output will be converted to UTF-8 with a leading UTF-8 BOM
445+ .arg("--decorations=always")
446+ .arg("test_UTF-16LE.txt")
449+ .stdout(std::str::from_utf8(b"\xEF\xBB\xBFhello world\n").unwrap());