Skip to content

Fix garbled map names in lobby list#401

Open
MrS-ibra wants to merge 1 commit intoGeneralsOnlineDevelopmentTeam:mainfrom
MrS-ibra:fix/map-name-encoding
Open

Fix garbled map names in lobby list#401
MrS-ibra wants to merge 1 commit intoGeneralsOnlineDevelopmentTeam:mainfrom
MrS-ibra:fix/map-name-encoding

Conversation

@MrS-ibra
Copy link
Member

@MrS-ibra MrS-ibra commented Mar 22, 2026

Map names appeared garbled in the lobby list for non ascii display names as sent from lobby creator to the server, potentially causing crashes.
AsciiString::translate() only works for 7 bit ASCII, and corrupts anything outside the range.
Fixed by using to_utf8() on send and from_utf8() on receive

before
image

after
image

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.

1 participant