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(renderer): Deal with invalid utf8 #2958
Conversation
55a73fd
to
15c9965
Compare
Codecov Report
@@ Coverage Diff @@
## master #2958 +/- ##
==========================================
+ Coverage 12.60% 12.88% +0.28%
==========================================
Files 162 162
Lines 12050 12049 -1
==========================================
+ Hits 1519 1553 +34
+ Misses 10531 10496 -35
Flags with carried forward coverage won't be shown. Click here to find out more.
|
hello, i still have this crash if i show browser window title to polybar using custom script. does it related if i open new bug report or it is not related to polybar? for now, i solved it by removing all non utf-8 characters |
This fix is not part of a release yet. So unless you built from the latest sources, you are probably still experiencing the same bug. |
Oh I see. i thought this fix was included in the last version. Thanks for your fast response. |
Hell again. I also face issue when try to show korean text to polybar, like [엘리멘탈] (다 같이) 사랑해, 러츠! 영상 |
Commit 32c78aa seems to break with clang 13.0.0 on OpenBSD:
|
Not at my computer, so can't investigate myself, but that error seems strange because Maybe were missing an |
Yes we're indeed missing an include. This wasn't caught because it only seems to happen with the libc++ standard library implementation. Should be easy to fix |
What type of PR is this? (check all applicable)
Description
Refactors a lot of the utf8 handling in the renderer + tests.
In addition
utf8_to_ucs4
now drops any invalid part of a utf8 string.The renderer (in
context.hpp
) also produces a warning with some diagnostic information if invalid utf8 is encountered.Related Issues & Documents
Fixes #2091
Documentation (check all applicable)