apple / apple/swift-system

Consider escaping invalid Unicode in `FilePath.debugDescription`

Open
#17 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Swift
Stars
1.4k
Forks
154
PR merge metrics
No merged PRs in 30d

Description

`FilePath.debugDescription` does encoding correction, but we could instead just escape invalid Unicode.

Contributor guide

Open the contributing guide

Research direction

Start at the FilePath.debugDescription entry point and inspect its current encoding-correction behavior. Determine how invalid Unicode should be represented when escaped, then verify that the resulting debug description preserves valid text and escapes invalid Unicode instead of correcting its encoding.

Written by the indexing model from the issue text.

Assessment

Tech stack
swift
Domain
operating-systems
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.