Skip to content

Fix Unicode progress bar literals#11

Closed
rdzehtsiar wants to merge 1 commit into
masterfrom
codex/replace-mojibake-with-unicode-characters
Closed

Fix Unicode progress bar literals#11
rdzehtsiar wants to merge 1 commit into
masterfrom
codex/replace-mojibake-with-unicode-characters

Conversation

@rdzehtsiar

Copy link
Copy Markdown
Owner

Motivation

  • Replace mojibake and hardcoded glyph occurrences so the reporter emits the correct Unicode vertical bar and filled block characters for progress bars.
  • Preserve existing ASCII fallback behavior for NO_COLOR, dumb terminals, and non-UTF-8 Windows console output.

Description

  • Introduce UNICODE_PROGRESS_BOUNDARY and UNICODE_PROGRESS_FILL constants and use them in render_progress_bar_with_style to centralize the Unicode glyphs.
  • Keep the ASCII branch unchanged ([{}{}] with # fills) so fallback behavior is preserved.
  • Update unit tests in src/pipeline/reporter.rs to assert correct UTF-8 strings like │████ │ and the ASCII fallback string [#### ].

Testing

  • Ran cargo fmt --check and it succeeded.
  • Ran cargo test reporter and the reporter unit tests passed.
  • Ran the full test suite with cargo test and all tests passed.

Codex Task

@sonarqubecloud

Copy link
Copy Markdown

@codecov-commenter

Copy link
Copy Markdown

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@github-actions

Copy link
Copy Markdown

Qodana for Rust

It seems all right 👌

No new problems were found according to the checks applied

💡 Qodana analysis was run in the pull request mode: only the changed files were checked
☁️ View the detailed Qodana report

Contact Qodana team

Contact us at qodana-support@jetbrains.com

@rdzehtsiar rdzehtsiar closed this Jun 20, 2026
@rdzehtsiar rdzehtsiar deleted the codex/replace-mojibake-with-unicode-characters branch June 20, 2026 14:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants