From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#23487: 25.0.93; Modules: add functionality to create and copy unibyte strings Date: Mon, 09 May 2016 20:22:13 +0300 Message-ID: <83r3dbcfju.fsf@gnu.org> References: Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1462814782 13950 80.91.229.3 (9 May 2016 17:26:22 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 9 May 2016 17:26:22 +0000 (UTC) Cc: 23487@debbugs.gnu.org To: Philipp Stephani Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon May 09 19:26:11 2016 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1azotm-0000MO-44 for geb-bug-gnu-emacs@m.gmane.org; Mon, 09 May 2016 19:23:14 +0200 Original-Received: from localhost ([::1]:42452 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1azoti-0003rL-3u for geb-bug-gnu-emacs@m.gmane.org; Mon, 09 May 2016 13:23:10 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:36128) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1azote-0003o4-Ru for bug-gnu-emacs@gnu.org; Mon, 09 May 2016 13:23:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1azota-0006a2-Hy for bug-gnu-emacs@gnu.org; Mon, 09 May 2016 13:23:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:60535) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1azota-0006Zy-Ed for bug-gnu-emacs@gnu.org; Mon, 09 May 2016 13:23:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1azota-0007WW-Ai for bug-gnu-emacs@gnu.org; Mon, 09 May 2016 13:23:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 09 May 2016 17:23:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 23487 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 23487-submit@debbugs.gnu.org id=B23487.146281454228857 (code B ref 23487); Mon, 09 May 2016 17:23:02 +0000 Original-Received: (at 23487) by debbugs.gnu.org; 9 May 2016 17:22:22 +0000 Original-Received: from localhost ([127.0.0.1]:44639 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1azosw-0007VN-5T for submit@debbugs.gnu.org; Mon, 09 May 2016 13:22:22 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:44909) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1azosv-0007VA-2s for 23487@debbugs.gnu.org; Mon, 09 May 2016 13:22:21 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1azosm-0006Pd-Py for 23487@debbugs.gnu.org; Mon, 09 May 2016 13:22:15 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:37637) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1azosm-0006PR-MM; Mon, 09 May 2016 13:22:12 -0400 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:4748 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1azosj-0000D2-TC; Mon, 09 May 2016 13:22:11 -0400 In-reply-to: (message from Philipp Stephani on Mon, 09 May 2016 18:45:19 +0200) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 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.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:118028 Archived-At: > From: Philipp Stephani > Date: Mon, 09 May 2016 18:45:19 +0200 > > Currently creating unibyte strings with the C module API is rather > convoluted: one has to create a list with the individual bytes and then > call `unibyte-string', requiring lots of memory allocations. Given that > creating a unibyte string is more fundamental than creating a multibyte > string, I propose adding functions to create and extract unibyte strings > that exactly mirror the existing support for multibyte strings. Can you explain why you need to create unibyte strings, or describe a use case where this would be required?