Skip to content

Read Rust file names from Git without quote decoding errors #892

Closed

Description

@LunaStev

Problem

rust_files runs line-delimited git ls-files and treats each line as a literal path. Git quotes non-ASCII and control-character filenames by default, so the helper silently skips valid tracked Rust files.

Reproduction

At fd07427f4a976de05e38eff3ee1760db97fbb761, a focused stub supplied the normal quoted Git record "caf\303\251.rs" for an existing café.rs file. list(rust_files()) returned []. This is a helper-level executed reproduction; no repository files were renamed. See tools/format-rust.py.

Scope

Use an unambiguous Git filename protocol, such as NUL-delimited output, preserving spaces, Unicode and embedded newlines. Difficulty: easy.

Completion criteria

  • Visit every existing tracked Rust path without silent skipping.
  • Test Unicode, spaces and escaped/control-character filenames.
  • Retain skip-directory behavior.

Activity

  1. added
    bug
    good first issue
    on Oct 7, 2026
  2. tecnolgd commented on Oct 9, 2026

    @tecnolgd
    Contributor

    Hey @LunaStev , I'd like to work on this issue. Could you please assign it to me?

  3. LunaStev commented on Oct 9, 2026

    @LunaStev
    MemberAuthor

    Hey @LunaStev , I'd like to work on this issue. Could you please assign it to me?

    Yes thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

buggood first issue

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions