This is the mail archive of the systemtap@sourceware.org mailing list for the systemtap project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug bpf/24926] non-ascii characters not printing on stapbpf


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.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]