From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: "Zhu Zihao" Newsgroups: gmane.emacs.devel Subject: Is copy_string_contents in emacs-module.h give us a proper UTF-8 string? Date: Thu, 8 Oct 2020 14:09:53 +0800 (CST) Message-ID: <79bc0bc2.1982.17506d48b4d.Coremail.all_but_last@163.com> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_23077_677721555.1602137393996" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="24820"; mail-complaints-to="usenet@ciao.gmane.io" To: "emacs-devel@gnu.org" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Oct 08 08:26:59 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 1kQPOE-0006KK-Qn for ged-emacs-devel@m.gmane-mx.org; Thu, 08 Oct 2020 08:26:58 +0200 Original-Received: from localhost ([::1]:38006 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kQPOD-0007xD-T0 for ged-emacs-devel@m.gmane-mx.org; Thu, 08 Oct 2020 02:26:57 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:46830) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kQPMl-0006ja-T6 for emacs-devel@gnu.org; Thu, 08 Oct 2020 02:25:28 -0400 Original-Received: from m131.mail.163.com ([220.181.13.1]:14045) by eggs.gnu.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.90_1) (envelope-from ) id 1kQPMf-0006Hk-2D for emacs-devel@gnu.org; Thu, 08 Oct 2020 02:25:26 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=163.com; s=s110527; h=Date:From:Subject:MIME-Version:Message-ID; bh=D01QV tuwEruTfoW6UvoeRtAguWeA09HjLEF5K2xt93c=; b=ADFTi2mPzrLOsfX5ANIGX /ffNH8yMOu5In0r6eAJdSy/FlaT6zE6i+CMTHLK6SKjWpHL+NoU/NdrGodP/iaXW /8+CBLZNfilKoPv3x11ejTynsonIQQOAAPgMU+0lPGNzXuwU/4JbqZyf2VZvNyzd 0XFSBoGCvu7mNb6Qt70pvo= Original-Received: from all_but_last$163.com ( [112.93.132.244] ) by ajax-webmail-wmsvr1 (Coremail) ; Thu, 8 Oct 2020 14:09:53 +0800 (CST) X-Originating-IP: [112.93.132.244] X-Priority: 3 X-Mailer: Coremail Webmail Server Version XT5.0.10 build 20190724(ac680a23) Copyright (c) 2002-2020 www.mailtech.cn 163com X-CM-CTRLDATA: nfNycGZvb3Rlcl9odG09MTc0MTo1Ng== X-Coremail-Locale: zh_CN X-CM-TRANSID: AcGowAAHB8kyrX5flVl9AA--.11037W X-CM-SenderInfo: pdoosuxxwbztlvw6il2tof0z/1tbiFAa3r1aD7dcD1wACsz X-Coremail-Antispam: 1U5529EdanIXcx71UUUUU7vcSsGvfC2KfnxnUU== Received-SPF: pass client-ip=220.181.13.1; envelope-from=all_but_last@163.com; helo=m131.mail.163.com X-detected-operating-system: by eggs.gnu.org: First seen = 2020/10/08 02:09:55 X-ACL-Warn: Detected OS = Linux 3.1-3.10 [fuzzy] X-Spam_score_int: 4 X-Spam_score: 0.4 X-Spam_bar: / X-Spam_report: (0.4 / 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_FROM=0.001, HTML_MESSAGE=0.001, MIME_CHARSET_FARAWAY=2.45, 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:257197 Archived-At: ------=_Part_23077_677721555.1602137393996 Content-Type: text/plain; charset=GBK Content-Transfer-Encoding: base64 SSBzZWUgdGhlIGNvbW1lbnQgaW4gZW1hY3MtbW9kdWxlLmggc2F5cwoKCi8qIENvcHkgdGhlIGNv bnRlbnQgb2YgdGhlIExpc3Agc3RyaW5nIFZBTFVFIHRvIEJVRkZFUiBhcyBhbiB1dGY4CiAgICAg TlVMLXRlcm1pbmF0ZWQgc3RyaW5nLgoKICAgICBTSVpFIG11c3QgcG9pbnQgdG8gdGhlIHRvdGFs IHNpemUgb2YgdGhlIGJ1ZmZlci4gIElmIEJVRkZFUiBpcwogICAgIE5VTEwgb3IgaWYgU0laRSBp cyBub3QgYmlnIGVub3VnaCwgd3JpdGUgdGhlIHJlcXVpcmVkIGJ1ZmZlciBzaXplCiAgICAgdG8g U0laRSBhbmQgcmV0dXJuIHRydWUuCgogICAgIE5vdGUgdGhhdCBTSVpFIG11c3QgaW5jbHVkZSB0 aGUgbGFzdCBOVUwgYnl0ZSAoZS5nLiAiYWJjIiBuZWVkcwogICAgIGEgYnVmZmVyIG9mIHNpemUg NCkuCgogICAgIFJldHVybiB0cnVlIGlmIHRoZSBzdHJpbmcgd2FzIHN1Y2Nlc3NmdWxseSBjb3Bp ZWQuICAqLwoKCkhvd2V2ZXIsIHRoZSBUZXh0IHJlcHJlc2VudGF0aW9uIGNoYXB0ZXIgaW4gRWxp c3AgbWFudWFsIHRvbGQgbWUgdGhhdCBVVEYtOCBlbmNvZGluZyBpbiBFbWFjcyBpcyBleHRlbmRl ZCB0byBzdG9yZSByYXcgYnl0ZXZlY3RvcgoKCiAgIFRvIHN1cHBvcnQgdGhpcyBtdWx0aXR1ZGUg b2YgY2hhcmFjdGVycyBhbmQgc2NyaXB0cywgRW1hY3MgY2xvc2VseQpmb2xsb3dzIHRoZSChsFVu aWNvZGUgU3RhbmRhcmShsS4gIFRoZSBVbmljb2RlIFN0YW5kYXJkIGFzc2lnbnMgYSB1bmlxdWUK bnVtYmVyLCBjYWxsZWQgYSChsGNvZGVwb2ludKGxLCB0byBlYWNoIGFuZCBldmVyeSBjaGFyYWN0 ZXIuICBUaGUgcmFuZ2Ugb2YKY29kZXBvaW50cyBkZWZpbmVkIGJ5IFVuaWNvZGUsIG9yIHRoZSBV bmljb2RlIKGwY29kZXNwYWNlobEsIGlzCqGuMC4uI3gxMEZGRkahryAoaW4gaGV4YWRlY2ltYWwg bm90YXRpb24pLCBpbmNsdXNpdmUuICBFbWFjcyBleHRlbmRzIHRoaXMKcmFuZ2Ugd2l0aCBjb2Rl cG9pbnRzIGluIHRoZSByYW5nZSChriN4MTEwMDAwLi4jeDNGRkZGRqGvLCB3aGljaCBpdCB1c2Vz CmZvciByZXByZXNlbnRpbmcgY2hhcmFjdGVycyB0aGF0IGFyZSBub3QgdW5pZmllZCB3aXRoIFVu aWNvZGUgYW5kIKGwcmF3CjgtYml0IGJ5dGVzobEgdGhhdCBjYW5ub3QgYmUgaW50ZXJwcmV0ZWQg YXMgY2hhcmFjdGVycy4gIFRodXMsIGEKY2hhcmFjdGVyIGNvZGVwb2ludCBpbiBFbWFjcyBpcyBh IDIyLWJpdCBpbnRlZ2VyLgoKCldpbGwgImNvcHlfc3RyaW5nX2NvbnRlbnRzIiBhbHdheXMgZ2l2 ZSB1cyBhIHByb3BlciBVVEYtOCBzdHJpbmcuIE9yIGl0IHdpbGwgZ2l2ZSB1cyBhIG1peCBvZiBi eXRldmVjdG9yIGFuZCBVVEY4Pwo= ------=_Part_23077_677721555.1602137393996 Content-Type: text/html; charset=GBK Content-Transfer-Encoding: base64 PGRpdiBzdHlsZT0ibGluZS1oZWlnaHQ6MS43O2NvbG9yOiMwM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