cleanup: remove unnecessary wstr usage

Part of #12502
This commit is contained in:
Daniel Rainer
2026-03-01 21:13:53 +01:00
committed by Johannes Altmanninger
parent 61dec20abd
commit 131febed2a

View File

@@ -6,7 +6,7 @@
fds::{BEST_O_SEARCH, wopen_dir},
parser::ParserEnvSetMode,
path::path_apply_cdpath,
wutil::{normalize_path, wperror, wreadlink},
wutil::{normalize_path, perror, wreadlink},
};
use errno::Errno;
use libc::{EACCES, ELOOP, ENOENT, ENOTDIR, EPERM};
@@ -168,7 +168,7 @@ pub fn cd(parser: &Parser, streams: &mut IoStreams, args: &mut [&wstr]) -> Built
.appendln(&wgettext_fmt!("%s: Permission denied: '%s'", cmd, dir_in));
} else {
errno::set_errno(Errno(best_errno));
wperror(L!("cd"));
perror("cd");
streams.err.appendln(&wgettext_fmt!(
"%s: Unknown error trying to locate directory '%s'",
cmd,