From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Monnier via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#58669: 28.2; bindat: str and strz not operating on vectors Date: Fri, 21 Oct 2022 11:29:45 -0400 Message-ID: References: <87tu3ymm51.fsf@cern.ch> Reply-To: Stefan Monnier Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="30745"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) Cc: 58669-done@debbugs.gnu.org To: Nacho Barrientos Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Oct 21 17:42:45 2022 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oluAX-0007mD-5l for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 21 Oct 2022 17:42:45 +0200 Original-Received: from localhost ([::1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oluAV-00024b-LE for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 21 Oct 2022 11:42:43 -0400 Original-Received: from [::1] (helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oltyJ-0001N2-Hc for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 21 Oct 2022 11:30:07 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oltyF-00015W-S0 for bug-gnu-emacs@gnu.org; Fri, 21 Oct 2022 11:30:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oltyF-0004nV-FS for bug-gnu-emacs@gnu.org; Fri, 21 Oct 2022 11:30:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oltyF-0006Tc-9c for bug-gnu-emacs@gnu.org; Fri, 21 Oct 2022 11:30:03 -0400 Resent-From: Stefan Monnier Original-Sender: "Debbugs-submit" Resent-To: bug-gnu-emacs@gnu.org Resent-Date: Fri, 21 Oct 2022 15:30:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 58669 X-GNU-PR-Package: emacs Mail-Followup-To: 58669@debbugs.gnu.org, monnier@iro.umontreal.ca, nacho.barrientos@cern.ch Original-Received: via spool by 58669-done@debbugs.gnu.org id=D58669.166636619824844 (code D ref 58669); Fri, 21 Oct 2022 15:30:03 +0000 Original-Received: (at 58669-done) by debbugs.gnu.org; 21 Oct 2022 15:29:58 +0000 Original-Received: from localhost ([127.0.0.1]:38724 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1olty9-0006Se-NY for submit@debbugs.gnu.org; Fri, 21 Oct 2022 11:29:57 -0400 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:28196) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1olty7-0006SK-SU for 58669-done@debbugs.gnu.org; Fri, 21 Oct 2022 11:29:57 -0400 Original-Received: from pmg3.iro.umontreal.ca (localhost [127.0.0.1]) by pmg3.iro.umontreal.ca (Proxmox) with ESMTP id E9319441655; Fri, 21 Oct 2022 11:29:49 -0400 (EDT) Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg3.iro.umontreal.ca (Proxmox) with ESMTP id 2C646441669; Fri, 21 Oct 2022 11:29:48 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1666366188; bh=eipIxLnqY8Bc28xFOLGoihTlzeCwyNN51rZIuP0HRbU=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=RUVeJrD8RwkBP0DIeYLESpAfcGjbmg57eQLYPczAvIJeehLJ3wGI3TiHAqcObj1Cc rEhLbSpAxrI3KPPml8AgaZk9Xc3SoEHJHPRG+MHXubrbXwog+A1r82/nYu3zLidf/h iJO7QfMX4FhaDLScHIoZ65ttjm24jZ8YL+rDaenOTcEZcYgnO7y6RKa3+XVU35+H8E hzN5M+n45jxZh68Czy/YT4JKWJ7+g0FZNeN42y4RNh3nee9gnKUOuZn7+9iXn6FxC2 umcCqT/dFPCUqHpDeQXx6GgHZm/+BiAQ1Y7OhVkdEZGF5CT+DwJmHTDMPBF5E+hhm+ gCXyWd3LPsbmg== Original-Received: from lechazo (lechon.iro.umontreal.ca [132.204.27.242]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id 1D144120AAA; Fri, 21 Oct 2022 11:29:48 -0400 (EDT) In-Reply-To: <87tu3ymm51.fsf@cern.ch> (Nacho Barrientos's message of "Thu, 20 Oct 2022 14:18:13 +0200") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:245991 Archived-At: Hola Nacho, Nacho Barrientos [2022-10-20 14:18:13] wrote: > Debugger entered--Lisp error: (wrong-type-argument listp [78 111 110 101]) > apply(unibyte-string [78 111 110 101]) Duh, yes the code was clearly wrong. > With the attached patch both return the string "None" as expected (well, > as I'd expect, *grins*). The diff also adds some extra tests. Thanks, pushed to `master`. > It's the first time that I look into this package so I'm not sure this > is the way it's meant to work but similar operations work fine on > vectors of bytes, for instance: Yes, I'm actually surprised I left this code in there as-is because I remember wondering how to make a unibyte string from a vector of bytes in an efficient way (and concluding that there's currently no good way to do that :-( ). Stefan