d2gl icon indicating copy to clipboard operation
d2gl copied to clipboard

Regression in commit 6ffe8f3f69d130760ca4746e1bfa8b13bd7aaafa

Open dabeibao opened this issue 1 year ago • 0 comments

Commit 6ffe8f3f69d130760ca4746e1bfa8b13bd7aaafa introduces a crash when encountering certain erratic monster names in a non-English (Chinese) locale.

After adding some traces, it appears that the length of the monster name exceeds 50 characters.

However, even after enlarging name_str to 128 characters, the crash persists due to illegal Unicode characters in the data contained within d2::hovered_monster_name.

Edit: After switching to non-HD font, the monster name is shown correctly.

dabeibao avatar May 05 '24 09:05 dabeibao