From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Philipp Stephani Newsgroups: gmane.emacs.bugs Subject: bug#23487: 25.0.93; Modules: add functionality to create and copy unibyte strings Date: Mon, 09 May 2016 18:45:19 +0200 Message-ID: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1462812385 6492 80.91.229.3 (9 May 2016 16:46:25 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 9 May 2016 16:46:25 +0000 (UTC) To: 23487@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon May 09 18:46:13 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 1azoJt-0005Fm-HE for geb-bug-gnu-emacs@m.gmane.org; Mon, 09 May 2016 18:46:09 +0200 Original-Received: from localhost ([::1]:42239 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1azoJs-0005wt-Vt for geb-bug-gnu-emacs@m.gmane.org; Mon, 09 May 2016 12:46:08 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:49678) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1azoJo-0005rN-1Q for bug-gnu-emacs@gnu.org; Mon, 09 May 2016 12:46:05 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1azoJm-0006WS-Jm for bug-gnu-emacs@gnu.org; Mon, 09 May 2016 12:46:03 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:60469) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1azoJm-0006WN-Ga for bug-gnu-emacs@gnu.org; Mon, 09 May 2016 12:46:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1azoJm-0006bl-BO for bug-gnu-emacs@gnu.org; Mon, 09 May 2016 12:46:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Philipp Stephani Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 09 May 2016 16:46:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 23487 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.146281233925365 (code B ref -1); Mon, 09 May 2016 16:46:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 9 May 2016 16:45:39 +0000 Original-Received: from localhost ([127.0.0.1]:44573 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1azoJP-0006b2-H1 for submit@debbugs.gnu.org; Mon, 09 May 2016 12:45:39 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:58593) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1azoJO-0006ao-0w for submit@debbugs.gnu.org; Mon, 09 May 2016 12:45:38 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1azoJH-0006SM-L0 for submit@debbugs.gnu.org; Mon, 09 May 2016 12:45:32 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:46053) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1azoJH-0006S8-HR for submit@debbugs.gnu.org; Mon, 09 May 2016 12:45:31 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:49546) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1azoJF-0005AA-2H for bug-gnu-emacs@gnu.org; Mon, 09 May 2016 12:45:30 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1azoJD-0006RP-HT for bug-gnu-emacs@gnu.org; Mon, 09 May 2016 12:45:28 -0400 Original-Received: from mail-wm0-x22c.google.com ([2a00:1450:400c:c09::22c]:37512) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1azoJD-0006RI-7G for bug-gnu-emacs@gnu.org; Mon, 09 May 2016 12:45:27 -0400 Original-Received: by mail-wm0-x22c.google.com with SMTP id a17so197530281wme.0 for ; Mon, 09 May 2016 09:45:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:subject:date:message-id:mime-version :content-transfer-encoding; bh=a3PsFuouOW4a+iCqz6VEXBGxdT4Tthk0yyWn8mVi5Kc=; b=Knpi+gpBaRGzlXdRxZgSOZXOA5//X/gDqwy7RxyZXeiVmapFkt/0qvIqSM4nYS1Szm x/seJfk35AlVxO3XPcSQ3IdVg6J3FdRiBJL6kF9qxNeJKptq9/6I0KzRddt7zdEZuZmC RdOjKP/7Sp21zn7x+VFKbZCaIewPwnWQxzELEdFpnudb7vEI0FV2s6Vz8wMOUAATuKED p4OrXAv+KSnfi2/pCUa2i1Ct2BbUamEC39em0GBEEtA0xhz0e3yh8sQlgQs35olxLbv1 dNK4mp5k3azxxCY5x+o/DsZQ+XgHQX71kNupE6tdQiNfGR3x8VnygvYtRGBosJaxPzxf 0BxQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:subject:date:message-id:mime-version :content-transfer-encoding; bh=a3PsFuouOW4a+iCqz6VEXBGxdT4Tthk0yyWn8mVi5Kc=; b=IcK5gM0X6biboD+/aIqT1ohWHAnIaeuEurL/NStIU4AL+a7bwC/hvd+iINa7Zkin3L FlnxXpUTOowvR6wtoBnAd8WR+8/iV8xxooDxAvYnjzCt3f7Kj59k8doWfo4MT23UQyI4 rcYbux904dzNgMXhJ0QK27fITNWEEqC+abvBAvrG0VKM+7CWJM9foYlZ5qTWc5076A2p Q1uLphcwxxMrTS1FbV3BYrWBO08rdTed0cYu40zp8MJ2Wc1iIrzo79OR8GoWJAI0Tohq fVX7hgL3H+/zA4GjHfyAlEQ5rIdlaKFDZ/l2UswlOZzM0i2mWPacJ4pubdDoe6fLH0qg +X6Q== X-Gm-Message-State: AOPr4FU2tUbwViSN1vlYfs8YwNDyAdeaaQ9b27I9t0JBMl+mypCOf7rQ88tuWXTev+5qLw== X-Received: by 10.194.123.67 with SMTP id ly3mr21565645wjb.135.1462812326115; Mon, 09 May 2016 09:45:26 -0700 (PDT) Original-Received: from a.muc.corp.google.com ([2a00:79e0:15:4:19a2:1c69:3bad:ed48]) by smtp.gmail.com with ESMTPSA id o73sm25710494wme.16.2016.05.09.09.45.24 for (version=TLS1_2 cipher=AES128-SHA bits=128/128); Mon, 09 May 2016 09:45:24 -0700 (PDT) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x 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:118024 Archived-At: 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. In GNU Emacs 25.0.93.5 (x86_64-unknown-linux-gnu, GTK+ Version 3.10.8) of 2016-04-24 built on localhost Repository revision: 0cd2e923dba8d8c7128b0c084ce6af22069e8db5 Windowing system distributor 'The X.Org Foundation', version 11.0.11501000 System Description: Ubuntu 14.04 LTS Configured using: 'configure --with-modules' Configured features: XPM JPEG TIFF GIF PNG SOUND GSETTINGS NOTIFY FREETYPE XFT ZLIB TOOLKIT_SCROLL_BARS GTK3 X11 MODULES Important settings: value of $LANG: en_US.UTF-8 locale-coding-system: utf-8-unix Major mode: Lisp Interaction Minor modes in effect: tooltip-mode: t global-eldoc-mode: t electric-indent-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Recent messages: Load-path shadows: None found. Features: (shadow sort mail-extr emacsbug message dired format-spec rfc822 mml mml-sec epg epg-config mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader cus-edit cus-start cus-load wid-edit thingatpt smtpmail auth-source cl-seq eieio byte-opt bytecomp byte-compile cl-extra cconv eieio-core cl-macs gv gnus-util password-cache sendmail rfc2047 rfc2045 ietf-drums mm-util help-fns help-mode easymenu cl-loaddefs pcase cl-lib mail-prsvr mail-utils time-date mule-util tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type mwheel x-win term/common-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list newcomment elisp-mode lisp-mode prog-mode register page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame cl-generic cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese charscript case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer cl-preloaded nadvice loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote inotify dynamic-setting system-font-setting font-render-setting move-toolbar gtk x-toolkit x multi-tty make-network-process emacs) Memory information: ((conses 16 116766 9764) (symbols 48 22500 0) (miscs 40 435 169) (strings 32 21796 4523) (string-bytes 1 627075) (vectors 16 14860) (vector-slots 8 467108 5936) (floats 8 205 107) (intervals 56 258 18) (buffers 976 15) (heap 1024 47322 987)) --=20 Google Germany GmbH Erika-Mann-Stra=C3=9Fe 33 80636 M=C3=BCnchen Registergericht und -nummer: Hamburg, HRB 86891 Sitz der Gesellschaft: Hamburg Gesch=C3=A4ftsf=C3=BChrer: Matthew Scott Sucherman, Paul Terence Manicle Diese E-Mail ist vertraulich. Wenn Sie nicht der richtige Adressat sind, leiten Sie diese bitte nicht weiter, informieren Sie den Absender und l=C3= =B6schen Sie die E-Mail und alle Anh=C3=A4nge. Vielen Dank. This e-mail is confidential. If you are not the right addressee please do = not forward it, please inform the sender, and please erase this e-mail including any attachments. Thanks.