fix: repair mojibake in entity CLI help text - #883
Merged
Conversation
Em-dashes, box-drawing char, and warning sign were double-encoded (misdecoded as Latin-1 then re-encoded), producing 'â' garbage in help output: 'Entity operations â formation'. Replaced with correct UTF-8: — (em-dash), ─ (box line), ⚠ (warning). Verified: tsc build passes, runtime help renders 'Entity operations — formation, compliance, spinouts'.
Contributor
Author
|
Thanks for merging! This fix was submitted under the ugig.net bounty "I will pay for every bug fix found and PR submitted" (https://ugig.net/bounties — bounty c3137a9d-de39-4c1e-b48a-3df804c32bdf). Claim submission ID 8a22db62 (pending review). Payment: $1 SOL per fix PR. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Bug
packages/cli/src/commands/entity.tscontained double-encoded UTF-8 (misdecoded as Latin-1 then re-encoded), producing visible garbage in help output:Entity operations â formation(should be—em-dash)'â'.repeat(70)separator (should be─box line)â experimental(should be⚠warning)Fix
Replaced the 5 mojibake sequences with correct UTF-8 characters at the byte level.
Verification
pnpm --filter @profullstack/sh1pt build→ passesEntity operations — formation, compliance, spinoutsgrepfor the mangledâcharacter → 0 matches