Skip to content

Fix LT-21127: Crash opening project in texts#369

Merged
jasonleenaylor merged 1 commit intomasterfrom
LT-21127
Mar 6, 2026
Merged

Fix LT-21127: Crash opening project in texts#369
jasonleenaylor merged 1 commit intomasterfrom
LT-21127

Conversation

@jtmaxwell3
Copy link
Contributor

@jtmaxwell3 jtmaxwell3 commented Mar 6, 2026

This fixes https://jira.sil.org/browse/LT-21127. Calling m_tss.CharAt(ich) on the first byte of an emoji causes the error: "Found a low surrogate char without a preceding high surrogate". Since we are looking for a number, we can exclude this case by conditioning on !char.IsLowSurrogate(m_tss.Text[ich]).


This change is Reviewable

@github-actions
Copy link

github-actions bot commented Mar 6, 2026

LCM Tests

    16 files  ±0      16 suites  ±0   3m 2s ⏱️ -5s
 2 858 tests ±0   2 838 ✅ ±0   20 💤 ±0  0 ❌ ±0 
11 380 runs  ±0  11 212 ✅ ±0  168 💤 ±0  0 ❌ ±0 

Results for commit 02b587f. ± Comparison against base commit 4e27ee6.

@jasonleenaylor jasonleenaylor merged commit b138092 into master Mar 6, 2026
4 of 5 checks passed
@jasonleenaylor jasonleenaylor deleted the LT-21127 branch March 6, 2026 21:46
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.

3 participants