[Bug 2117527] Re: chmod requires utf-8 pathnames
Julian Andres Klode
2117527 at bugs.launchpad.net
Thu Sep 4 22:07:50 UTC 2025
Lowering to medium as chmod is not exposed by coreutils-from
** Changed in: rust-coreutils (Ubuntu)
Status: New => Triaged
** Changed in: rust-coreutils (Ubuntu)
Importance: Critical => Medium
** Changed in: rust-coreutils (Ubuntu)
Milestone: ubuntu-25.10 => None
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to rust-coreutils in Ubuntu.
https://bugs.launchpad.net/bugs/2117527
Title:
chmod requires utf-8 pathnames
Status in rust-coreutils package in Ubuntu:
Triaged
Bug description:
Hello, the new uutils implementation of at least chmod requires
pathnames to be valid UTF-8. Linux makes no such requirement and
neither should our utilities. (Some filesystems offer UTF-8 validation
and canonicalization as features but these are not mandatory.)
See eg
https://github.com/uutils/coreutils/blob/main/src/uu/chmod/src/chmod.rs#L139
// FIXME: enable non-utf8 paths
let mut files: Vec<String> = matches
.get_many::<String>(options::FILE)
.map(|v| v.map(ToString::to_string).collect())
.unwrap_or_default();
I'm not sure what the best resolution would be:
- Using OsString
- Using CString
- Using some other wrapper around a vector of u8
etc.
Thanks
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/rust-coreutils/+bug/2117527/+subscriptions
More information about the foundations-bugs
mailing list