[PR #4150] [MERGED] Fixed a deadlock when printing surrogate pairs #25658

Open
opened 2026-01-31 09:10:56 +00:00 by claunia · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/microsoft/terminal/pull/4150
Author: @lhecker
Created: 1/8/2020
Status: ✅ Merged
Merged: 1/15/2020
Merged by: @undefined

Base: master ← Head: fix-surrogate-output


📝 Commits (3)

  • d6776f5 Fixed a deadlock when printing surrogate pairs
  • ca65a41 Addressed review comments
  • c4c07be Added a surrogate printing test case

📊 Changes

2 files changed (+94 additions, -9 deletions)

View changed files

📝 src/cascadia/TerminalCore/Terminal.cpp (+22 -9)
📝 src/cascadia/UnitTests_TerminalCore/TerminalApiTest.cpp (+72 -0)

📄 Description

Summary of the Pull Request

See my code comment below for technical details of the issue that caused #4145.

PR Checklist

  • Closes #1360, Closes #4145.
  • CLA signed. If not, go over here and sign the CLA
  • Tests added/passed
  • Requires documentation to be updated
  • I've discussed this with core contributors already. If not checked, I'm ready to accept this work might be rejected in favor of a different grand plan. Issue number where discussion took place: #xxx

Detailed Description of the Pull Request / Additional comments

TBH I kinda hope this project could migrate to an internal use of UTF-8 in the future. 😶

Validation Steps Performed

Followed the "Steps to reproduce" in #4145 and ensured the "Expected behavior" happens.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/microsoft/terminal/pull/4150 **Author:** [@lhecker](https://github.com/lhecker) **Created:** 1/8/2020 **Status:** ✅ Merged **Merged:** 1/15/2020 **Merged by:** [@undefined](undefined) **Base:** `master` ← **Head:** `fix-surrogate-output` --- ### 📝 Commits (3) - [`d6776f5`](https://github.com/microsoft/terminal/commit/d6776f51f62486bb3abe3920de8be0daf4de2c3c) Fixed a deadlock when printing surrogate pairs - [`ca65a41`](https://github.com/microsoft/terminal/commit/ca65a41e8ce4b85f5fdeb741d789e6b3be1e6567) Addressed review comments - [`c4c07be`](https://github.com/microsoft/terminal/commit/c4c07be0242bde3c9b69ab9ee46f8a540d96ee92) Added a surrogate printing test case ### 📊 Changes **2 files changed** (+94 additions, -9 deletions) <details> <summary>View changed files</summary> 📝 `src/cascadia/TerminalCore/Terminal.cpp` (+22 -9) 📝 `src/cascadia/UnitTests_TerminalCore/TerminalApiTest.cpp` (+72 -0) </details> ### 📄 Description ## Summary of the Pull Request See [my code comment](https://github.com/microsoft/terminal/pull/4150#discussion_r364392640) below for technical details of the issue that caused #4145. ## PR Checklist * [x] Closes #1360, Closes #4145. * [x] CLA signed. If not, go over [here](https://cla.opensource.microsoft.com/microsoft/Terminal) and sign the CLA * [ ] Tests added/passed * [ ] Requires documentation to be updated * [ ] I've discussed this with core contributors already. If not checked, I'm ready to accept this work might be rejected in favor of a different grand plan. Issue number where discussion took place: #xxx ## Detailed Description of the Pull Request / Additional comments TBH I kinda hope this project could migrate to an internal use of UTF-8 in the future. 😶 ## Validation Steps Performed Followed the "Steps to reproduce" in #4145 and ensured the "Expected behavior" happens. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
claunia added the pull-request label 2026-01-31 09:10:56 +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#25658