-
Notifications
You must be signed in to change notification settings - Fork 3.8k
Project name strips non-ASCII (CJK) characters from path, resulting in truncated/unrecognizable names #571
Copy link
Copy link
Open
Labels
awaiting-reporterWaiting on the reporter for info/repro; stale bot will warn then closeWaiting on the reporter for info/repro; stale bot will warn then closebugSomething isn't workingSomething isn't workingpriority/highNeeds near-term maintainer attention; high-impact bug, regression, safety issue, or release blocker.Needs near-term maintainer attention; high-impact bug, regression, safety issue, or release blocker.staleNo activity after an info request; will be closed soonNo activity after an info request; will be closed soonux/behaviorDisplay bugs, docs, adoption UXDisplay bugs, docs, adoption UX
Milestone
Description
Activity
Metadata
Metadata
Assignees
Labels
awaiting-reporterWaiting on the reporter for info/repro; stale bot will warn then closeWaiting on the reporter for info/repro; stale bot will warn then closebugSomething isn't workingSomething isn't workingpriority/highNeeds near-term maintainer attention; high-impact bug, regression, safety issue, or release blocker.Needs near-term maintainer attention; high-impact bug, regression, safety issue, or release blocker.staleNo activity after an info request; will be closed soonNo activity after an info request; will be closed soonux/behaviorDisplay bugs, docs, adoption UXDisplay bugs, docs, adoption UX
Bug Description
When indexing a project with a path containing non-ASCII characters (e.g. Chinese/CJK), the generated project name strips all non-ASCII characters and only retains the ASCII portions of the path.
Steps to Reproduce
/Users/yunxin/Desktop/开发/后端/信租风控通后端index_repositoryon this pathUsers-yunxin-Desktop— all Chinese segments are silently droppedExpected Behavior
The project name should either:
Users-yunxin-Desktop-开发-后端-信租风控通后端Users-yunxin-Desktop-%E5%BC%80%E5%8F%91-...nameparameter inindex_repositoryto override the auto-generated nameActual Behavior
All non-ASCII path segments are stripped. For the path above, the result is just
Users-yunxin-Desktop, losing all meaningful project identification.Impact
Environment