[Bug 2117527] Re: chmod requires utf-8 pathnames

Julian Andres Klode 2117527 at bugs.launchpad.net
Tue Jul 29 10:48:37 UTC 2025


** Changed in: rust-coreutils (Ubuntu)
    Milestone: None => ubuntu-25.10

** Changed in: rust-coreutils (Ubuntu)
   Importance: Undecided => Critical

-- 
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:
  New

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