- I think the Chinese char* literal is most suspicious.
- INVALID I think the Chinese char* literal is most suspicious.
try use ascii string there.
yes. debugoptimized build warning is gone when only use ascii string.
@@ -248,7 +249,10 @@ They don't work properly in Wayland.
all char* is assumed to be utf-8. it is supported out of the box.
- I got a minimal reproducible demo.
// segfault also happen in -O2 with ascii literal. it's not utf-8 string
issue.
- FIXED I got a minimal reproducible demo. // this is another locale issue. fixed.
#+BEGIN_SRC c
const gchar* first = "第一个";
g_assert_true(g_utf8_validate(first, -1, NULL));
@@ -283,6 +287,101 @@ They don't work properly in Wayland.
// good.
- warning still persist after adding setlocale() call.
new code still segfault on RHEL9.
on RHEL9,
debug build doesn't segfault.
has a warning.
#+BEGIN_SRC sh
,** (zero-panel-client-demo:36293): WARNING **: 14:43:15.167: call ShowCandidates() failed: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name is not activatable
#+END_SRC
the demo requires zero-panel service running.
when zero-panel service is running. the program in debug mode runs fine in
RHEL9.
debugoptimized still segfault.
#+BEGIN_SRC sh
or help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from ./build/zero-panel-client-demo...