EpicGamesExt / raddebugger

A native, user-mode, multi-process, graphical debugger.
MIT License
3.34k stars 169 forks source link

Fix issues with UTF-8 display and navigation #303

Open alektron opened 1 month ago

alektron commented 1 month ago

This fixes two bugs related to UTF-8.

The first bug was in UTF-8 decoding and prevented certain multi byte characters from getting added to the font atlas correctly. This issue was first noticed when trying to type a german 'Ü' into the target's Arguments field and only empty space showed up. This is exactly the same as #184. Sorry for the duplication but the rest of this pull request only really makes sense with this change.

The second bug is not so much a bug but more the missing implementation for UI_EventDeltaUnit_Char. It now properly adjusts the delta to correctly jump over multi byte character in both directions. Without this fix e.g. the previously mentioned 'Ü' acted like two characters when trying to move the cursor.

There still seems to be outstanding issues with rendering multi byte characters where monospaced font is used. For example the watch window.