Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix issues of restriction of chat message charset #391

Merged
merged 1 commit into from
Jan 6, 2023

Conversation

p0358
Copy link
Contributor

@p0358 p0358 commented Jan 6, 2023

Fixes regressions introduced with #389 (4df4758).

Previous implementation could cause crashes due to null pointer dereference and removed all UTF-8 characters.

Current implementation fixes aforementioned null pointer dereference, preserves valid UTF-8 sequences while removing invalid ones (invalid ones won't crash). Furthermore, duplicated code was moved out to a common file.

Also allows : as suggested by cpdt analogous to here: https://github.com/R2Northstar/NorthstarLauncher/blob/main/NorthstarDLL/client/localchatwriter.cpp#L414

Copy link
Member

@GeckoEidechse GeckoEidechse left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Works in testing: Still strips BEL but keeps üäö which previous version would strip.

Copy link

@NoCatt NoCatt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The German "Umlaute" (ä,ö,ü) seem to work again.
Chat colours crashing the client also are fixed.

@BobTheBob9 BobTheBob9 merged commit 3cfd6f9 into R2Northstar:main Jan 6, 2023
BobTheBob9 pushed a commit that referenced this pull request Jan 20, 2023
Pedantic fix for previous commit (3cfd6f9) (use if-else instead of if)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

4 participants