[PR #12700] Make conhost history deduplication case-sensitive #29199

Closed
opened 2026-01-31 09:33:27 +00:00 by claunia · 0 comments
Owner

Original Pull Request: https://github.com/microsoft/terminal/pull/12700

State: closed
Merged: Yes


The legacy console used to use case-sensitive history deduplication and
this change reverts the logic to restore ye olde history functionality.

This commit additionally changes the other remaining std::equal plus
std::towlower check into a CompareStringOrdinal call,
just because that's what MSDN suggests to use in such situations.

PR Checklist

Validation Steps Performed

  • Enter test /v
  • Enter test /V
  • Browsing through the history yields both items
**Original Pull Request:** https://github.com/microsoft/terminal/pull/12700 **State:** closed **Merged:** Yes --- The legacy console used to use case-sensitive history deduplication and this change reverts the logic to restore ye olde history functionality. This commit additionally changes the other remaining `std::equal` plus `std::towlower` check into a `CompareStringOrdinal` call, just because that's what MSDN suggests to use in such situations. ## PR Checklist * [x] Closes #4186 * [x] I work here * [x] Tests added/passed ## Validation Steps Performed * Enter `test /v` * Enter `test /V` * Browsing through the history yields both items ✅
claunia added the pull-request label 2026-01-31 09:33:27 +00:00
Sign in to join this conversation.
No Label pull-request
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#29199