Skip to content

fix: repair mojibake in entity CLI help text - #883

Merged
ralyodio merged 1 commit into
profullstack:masterfrom
0xzino:fix/cli-mojibake-encoding
Jul 31, 2026
Merged

fix: repair mojibake in entity CLI help text#883
ralyodio merged 1 commit into
profullstack:masterfrom
0xzino:fix/cli-mojibake-encoding

Conversation

@0xzino

@0xzino 0xzino commented Jul 31, 2026

Copy link
Copy Markdown
Contributor

Bug

packages/cli/src/commands/entity.ts contained 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 → passes
  • Runtime help renders: Entity operations — formation, compliance, spinouts
  • grep for the mangled â character → 0 matches

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'.
@ralyodio
ralyodio merged commit 1e5730c into profullstack:master Jul 31, 2026
4 checks passed
@0xzino

0xzino commented Jul 31, 2026

Copy link
Copy Markdown
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.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants