Skip to content

bugfix correction table use for flag emojis - #284

Merged
jquast merged 2 commits into
masterfrom
jq/bugfix-ri-pairs.md
Oct 2, 2026
Merged

jquast merged 2 commits into
masterfrom
jq/bugfix-ri-pairs.md

Conversation

@jquast

@jquast jquast commented Oct 1, 2026 •

Copy link
Copy Markdown
Owner

Bugfix regional-indicator pairs (flags) for some terminals.

This affects only wcstwidth() or width() and other alignment functions with term_program=True, that matches an item in list_term_programs() that is recorded to measure single RI's as narrow (xterm, wezterm, VTE, and others). This is unusual, most unicode-compliant terminals measure wide.

**Bugfix** regional-indicator pairs (flags) when corrected for terminals
that also show single regional indicators as narrow, which is *not* how
they should be displayed, but a popular workaround to match
unicode-progressive widths, (xterm, wezterm, VTE, and others)

This affects only `wcstwidth()`_ and `width()`_ with term_program=True
or set to known terminal.
@jquast
jquast force-pushed the jq/bugfix-ri-pairs.md branch from dd234df to af32d98 Compare October 1, 2026 21:00
@jquast
jquast marked this pull request as ready for review October 1, 2026 21:02
@codspeed

codspeed Bot commented Oct 1, 2026 •

Copy link
Copy Markdown

Merging this PR will not alter performance

✅ 121 untouched benchmarks


Comparing jq/bugfix-ri-pairs.md (f136a84) with master (5f185b3)

Open in CodSpeed

@codecov

codecov Bot commented Oct 1, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 87.60%. Comparing base (5f185b3) to head (f136a84).

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #284   +/-   ##
=======================================
  Coverage   87.60%   87.60%           
=======================================
  Files          41       41           
  Lines        5609     5609           
  Branches     1500     1500           
=======================================
  Hits         4914     4914           
  Misses        321      321           
  Partials      374      374           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@jquast
jquast merged commit 2d52163 into master Oct 2, 2026
38 checks passed
@jquast
jquast deleted the jq/bugfix-ri-pairs.md branch October 2, 2026 14:22
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.

1 participant