You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.
IMO this is very inconsistent. Personally I'd favor never adding a trailing 0x00 since the underlaying assumption (everything is stored as a 0x00-terminated string) is not true.
The text was updated successfully, but these errors were encountered:
I'd love to fix this (make it consistent), but first I'm wondering if anybody has comments on this:
When writing out a
'utf-8'
string, it gets a terminating0x00
(C-Style String):However, when writing out a string using
'ascii'
encoding, no trailing0x00
is added:IMO this is very inconsistent. Personally I'd favor never adding a trailing
0x00
since the underlaying assumption (everything is stored as a 0x00-terminated string) is not true.The text was updated successfully, but these errors were encountered: