From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Some dynamic module questions Date: Fri, 27 Nov 2020 14:47:52 +0200 Message-ID: <83zh33neyv.fsf@gnu.org> References: Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="4228"; mail-complaints-to="usenet@ciao.gmane.io" Cc: p.stephani2@gmail.com, emacs-devel@gnu.org To: Helmut Eller Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Nov 27 13:48:51 2020 Return-path: Envelope-to: ged-emacs-devel@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 1kidBC-0000zx-9V for ged-emacs-devel@m.gmane-mx.org; Fri, 27 Nov 2020 13:48:50 +0100 Original-Received: from localhost ([::1]:55576 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kidBB-0003Dw-B3 for ged-emacs-devel@m.gmane-mx.org; Fri, 27 Nov 2020 07:48:49 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:33720) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kidAX-0002oH-Vn for emacs-devel@gnu.org; Fri, 27 Nov 2020 07:48:10 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:47038) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kidAX-0002i0-Oa; Fri, 27 Nov 2020 07:48:09 -0500 Original-Received: from [176.228.60.248] (port=3016 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1kidAX-0000kv-6R; Fri, 27 Nov 2020 07:48:09 -0500 In-Reply-To: (message from Helmut Eller on Fri, 27 Nov 2020 13:01:55 +0100) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:259880 Archived-At: > From: Helmut Eller > Date: Fri, 27 Nov 2020 13:01:55 +0100 > Cc: Emacs developers > > > Emacs 28 will have a make_unibyte_string function. Before that, you > > have to resort to calling the unibyte-string function directly. > > But that's only for passing bytes from C to Lisp. What about the other > direction? Why do you need that? The concept of unibyte vs multibyte strings exists only in Lisp; in C you just have a sequence of 'char' bytes, and the way you interpret it depends on your C code. If you have some specific use case where this looks like a necessity, can you describe that use case?