This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
[Bug bpf/24926] non-ascii characters not printing on stapbpf
- From: "me at serhei dot io" <sourceware-bugzilla at sourceware dot org>
- To: systemtap at sourceware dot org
- Date: Wed, 21 Aug 2019 22:04:55 +0000
- Subject: [Bug bpf/24926] non-ascii characters not printing on stapbpf
- Auto-submitted: auto-generated
- References: <bug-24926-6586@http.sourceware.org/bugzilla/>
https://sourceware.org/bugzilla/show_bug.cgi?id=24926
Serhei Makarov <me at serhei dot io> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |me at serhei dot io
--- Comment #1 from Serhei Makarov <me at serhei dot io> ---
UTF8 bytes are being corrupted in emit_simple_literal_str() due to an
unexpected sign extension for negative char values:
char c = 0xe5;
uint64_t b = c; // b becomes ffffffffffffffe5
Adding a cast to unsigned char seems to fix the problem.
--
You are receiving this mail because:
You are the assignee for the bug.