Add configurable ambiguous-width policy (narrow/wide)#19864
Open
unagi wants to merge 2 commits intomicrosoft:mainfrom
Open
Add configurable ambiguous-width policy (narrow/wide)#19864unagi wants to merge 2 commits intomicrosoft:mainfrom
unagi wants to merge 2 commits intomicrosoft:mainfrom
Conversation
Reason:\n- Address ambiguous-width rendering requests discussed in microsoft#153 and microsoft#370 without introducing a locale-based default policy.\n\nScope:\n- Add compatibility.ambiguousWidth as narrow|wide and wire it through settings model/schema/UI.\n- Propagate the selected mode through Terminal -> ConPTY -> winconpty -> conhost argument paths.\n- Replace fixed ambiguous width handling in CodepointWidthDetector with policy-based resolution and keep related width paths consistent.\n- Extend regression coverage for ambiguous symbols, DEC special-character alignment, fallback lifecycle stability, and emoji/VS16-adjacent behavior.\n\nBreaking changes:\n- None. Default behavior remains narrow.
Author
|
@microsoft-github-policy-service agree |
Member
DHowett
reviewed
Feb 13, 2026
src/cascadia/TerminalSettingsModel/TerminalSettingsSerializationHelpers.h
Outdated
Show resolved
Hide resolved
Author
Reason: review pointed out unnecessary newline code changes in PR microsoft#19864. Impact: keep logical changes intact while normalizing edited files to repository line endings. Breaking change: none.
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.




Summary of the Pull Request
Add a configurable
compatibility.ambiguousWidthsetting and allow ambiguous-width behavior to be explicitly selected asnarroworwide.The default remains
narrow.References and Relevant Issues
Detailed Description of the Pull Request / Additional comments
Background (#2928)
We understand the rationale in #2928 for favoring fixed/predictable behavior for ambiguous width handling.
This PR keeps that principle by preserving
narrowas the default, while adding an explicit opt-in path for users who needwide.What this PR changes
compatibility.ambiguousWidthwithnarrow|wide(nolocalemode)CodepointWidthDetectorwith policy-based resolution (narrow=1,wide=2)Compatibility
narrow.Localization note
This PR adds new Settings UI strings in
en-USonly.Localized resources will be handled in the subsequent Localization Updates flow after this PR is accepted.
Validation Steps Performed
git diff --checklocale-mode wiring or constants for ambiguous widthPR Checklist