From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Philipp Stephani Newsgroups: gmane.emacs.devel Subject: Re: Some dynamic module questions Date: Thu, 3 Dec 2020 12:49:10 +0100 Message-ID: References: <83zh33neyv.fsf@gnu.org> <83wny7nd2b.fsf@gnu.org> <83v9drncx7.fsf@gnu.org> <20201127135406.GI1558@odonien.localdomain> <83pn3yomzz.fsf@gnu.org> <20201127152114.GJ1558@odonien.localdomain> <83mtz2om79.fsf@gnu.org> <87o8jbz4z3.fsf@gnus.org> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="22404"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Lars Ingebrigtsen , Vasilij Schneidermann , Eli Zaretskii , Emacs developers To: Helmut Eller Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Dec 03 12:50:00 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 1kkn7X-0005bP-1B for ged-emacs-devel@m.gmane-mx.org; Thu, 03 Dec 2020 12:49:59 +0100 Original-Received: from localhost ([::1]:53666 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kkn7W-00051P-2Y for ged-emacs-devel@m.gmane-mx.org; Thu, 03 Dec 2020 06:49:58 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:60100) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kkn6z-0004TE-A4 for emacs-devel@gnu.org; Thu, 03 Dec 2020 06:49:25 -0500 Original-Received: from mail-oi1-x229.google.com ([2607:f8b0:4864:20::229]:36860) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kkn6x-0003ma-Fi; Thu, 03 Dec 2020 06:49:24 -0500 Original-Received: by mail-oi1-x229.google.com with SMTP id x16so1876702oic.3; Thu, 03 Dec 2020 03:49:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=3vvNej5N98QMh4ljixO9iRFHtAejj9b6X9HPnRJHoEE=; b=kFSnS7nBCiok5L7+P49KsAMidCz09Ifj+3B96oAQsU4g01ZOcF1ysy3tzZeEZPO5QT iY6Bnh3KBZ1G382//c0ndnmNFvWP3kM5iLtIHDJkqWAD0+oB1ysLm57JX/FPX0++sMxz HcIslkZmmAtse+XM21PMaGOCDh4H6SCfue8ORh+KcX19n6xWDWQVh5QcdxJjApeQrbOi PLJrjnR675k6CcvYel34m4kLHfEAZULZ3sBiHRl33PFSX7V/Mbsew/ag1rQbXNRQY4r4 vi7szMyHcAgwSwGQBFNiozawzmE0cUcG+KzLeePZM4GaFUfZK8Lt/zl44ceGVybsywpb 8hTw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=3vvNej5N98QMh4ljixO9iRFHtAejj9b6X9HPnRJHoEE=; b=Cq4oyjnXHIVXOE+tLiA+h9RkYKqu6+qtSl2cNrWKr+pLJX66fxNFiOoFjVzZqddN2U kb6a5iFtyquBUT6DaX4qbvz2w91eeXE0YWlEeQFj/p6dYluemkz3BmXXfkDAe5fEYXuC fSZycFcOIlOyVyyqwI86/ArvLMfzz97vNC9T5+uwDfF//uloDrztvXwRneZXdl7wWCse e5ydKakIYH51JO1R/XwKFGZ3CJuOHB8fvLM/J0c1cq9kGq6DgN2aQaMk9R4wocmPec+M uWlj7wrHecz/oGUshXt3uSpf8Nk1ZCIUw0FnksJAlKzs/m8ZLLuuj00+5MziInM4z/ne /hxQ== X-Gm-Message-State: AOAM532ML1SsUWfjoUckY2aQS9KOC/WsArNJvjgJ2uPbwZ50niuoVsA1 mFc4qSqo+Jp6eujSxs+/X0XfaRAHMzqUd/RPieI= X-Google-Smtp-Source: ABdhPJxrEr3Elt9py0yPU0lw5tmEdXZOQjkz5JiuadFsNG9ewo4P+KgDxRJGQYadB5/FLh8F0WkzBcEZ7yvDkoEES/k= X-Received: by 2002:aca:d4cf:: with SMTP id l198mr1503311oig.170.1606996161369; Thu, 03 Dec 2020 03:49:21 -0800 (PST) In-Reply-To: Received-SPF: pass client-ip=2607:f8b0:4864:20::229; envelope-from=p.stephani2@gmail.com; helo=mail-oi1-x229.google.com X-Spam_score_int: -17 X-Spam_score: -1.8 X-Spam_bar: - X-Spam_report: (-1.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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:260215 Archived-At: Am Do., 3. Dez. 2020 um 09:42 Uhr schrieb Helmut Eller : > > On Thu, Dec 03 2020, Lars Ingebrigtsen wrote: > > > Philipp Stephani writes: > > > >> Unibyte support has now been requested at least three times > >> independently (https://debbugs.gnu.org/cgi/bugreport.cgi?bug=23487, > >> https://debbugs.gnu.org/cgi/bugreport.cgi?bug=34873, this thread), > >> showing how much users care about it. > > > > Sorry; I haven't followed this thread -- but if you're talking about > > making unibyte strings in modules, this was addded in > > 12175a339e2a2214fdd0ab4e16d8d8b1e92a78d3. > > My question is mostly if copy_string_contents can also be used for > unibyte strings or if there should be a separate > copy_unibyte_string_contents. > > Encoding unibyte strings in UTF-8 probably doesn't make much sense, or > does it? And adding a trailing NUL byte is not useful for binary data. I agree that there should be a copy_unibyte_string_contents as well.