bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#55719: [PATCH] bindat strz fixes


From: Richard Hansen
Subject: bug#55719: [PATCH] bindat strz fixes
Date: Tue, 31 May 2022 16:08:18 -0400
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.9.1

On 5/31/22 07:08, Eli Zaretskii wrote:
Can you tell why you are convinced the null byte should be considered
as part of the string?

The null terminator is the reason one would use the strz type. If the
user doesn't want a null terminator, they should use the str type
instead. From the documentation [1]:

str len

    String of bytes of length len.

strz &optional len

Zero-terminated string of bytes, can be of arbitrary length or in a fixed-size field with length len.

[1] 
https://www.gnu.org/software/emacs/manual/html_node/elisp/Bindat-Types.html#index-bindat_002dtype

Attachment: OpenPGP_signature
Description: OpenPGP digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]