Re: [lttng-dev] error with ctf_sequence_text when using non-utf8 encoded strings

2024-01-31 Thread Philippe Proulx via lttng-dev
On Wed, Jan 31, 2024 at 12:58 PM Nathan Ricci via lttng-dev wrote: > > I am trying to emit a trace that has a wchar string, using as one of the > fields ctf_sequence_text. When the trace is recorded, it seems like > everything at but the first character is truncated, and I think this is >

[lttng-dev] error with ctf_sequence_text when using non-utf8 encoded strings

2024-01-31 Thread Nathan Ricci via lttng-dev
I am trying to emit a trace that has a wchar string, using as one of the fields ctf_sequence_text. When the trace is recorded, it seems like everything at but the first character is truncated, and I think this is because it is assuming UTF8 encoding and stopping at the first null character.