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

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

bug#55897: closed ([PATCH] bindat (str, strz): Convert to unibyte when p


From: GNU bug Tracking System
Subject: bug#55897: closed ([PATCH] bindat (str, strz): Convert to unibyte when packing)
Date: Sun, 12 Jun 2022 07:02:01 +0000

Your message dated Sun, 12 Jun 2022 10:00:42 +0300
with message-id <83h74qwelh.fsf@gnu.org>
and subject line Re: bug#55897: [PATCH] bindat (str, strz): Convert to unibyte 
when packing
has caused the debbugs.gnu.org bug report #55897,
regarding [PATCH] bindat (str, strz): Convert to unibyte when packing
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs@gnu.org.)


-- 
55897: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=55897
GNU Bug Tracking System
Contact help-debbugs@gnu.org with problems
--- Begin Message --- Subject: [PATCH] bindat (str, strz): Convert to unibyte when packing Date: Sat, 11 Jun 2022 00:38:00 -0400 User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.9.1
X-Debbugs-CC: monnier@iro.umontreal.ca

Two patches attached:

Patch 1:

    bindat (str, strz): Reject multibyte input strings

    * lisp/emacs-lisp/bindat.el (str) (strz): Signal an error if the user
    attempts to pack a multibyte string.
    * test/lisp/emacs-lisp/bindat-tests.el (str) (strz): Add tests.

Patch 2:

    bindat (str, strz): Convert to unibyte when packing

    * lisp/emacs-lisp/bindat.el (str) (strz): Allow callers to pack a
    multibyte string if it only contains ASCII and `eight-bit' characters.
    * doc/lispref/processes.texi (Bindat Types): Update documentation.
    * test/lisp/emacs-lisp/bindat-tests.el (str) (strz): Update tests.

Attachment: 0001-bindat-str-strz-Reject-multibyte-input-strings.patch
Description: Text Data

Attachment: 0002-bindat-str-strz-Convert-to-unibyte-when-packing.patch
Description: Text Data

Attachment: OpenPGP_signature
Description: OpenPGP digital signature


--- End Message ---
--- Begin Message --- Subject: Re: bug#55897: [PATCH] bindat (str, strz): Convert to unibyte when packing Date: Sun, 12 Jun 2022 10:00:42 +0300
> Date: Sun, 12 Jun 2022 01:23:17 -0400
> Cc: 55897@debbugs.gnu.org, monnier@iro.umontreal.ca
> From: Richard Hansen <rhansen@rhansen.org>
> 
> > Please instead make a single change which incorporates both.
> 
> Done; see attached.
> 
> > P.S. Please also mention the bug number in the log message of the next
> > version of the patch, since the number is now known.
> 
> Done.

Thanks, installed.


--- End Message ---

reply via email to

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