docs(utils): doubt about Command::output encoding on Windows

This commit is contained in:
Rudxain 2025-03-06 01:22:41 -04:00 committed by Ricardo Fernández Serrata
commit b8abd7d27a

View file

@ -136,6 +136,7 @@ pub fn open_url(dir: PathBuf) {
match Command::new(opener).arg(dir).output() {
Ok(o) => {
if !o.status.success() {
// does Windows print UTF-16?
let stderr = String::from_utf8(o.stderr).unwrap().trim_end().to_string();
error!("Can't open the following URL: {}", stderr);
}