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.bugs Subject: bug#48029: 28.1; [native-comp] Function names with non-ascii characters Date: Fri, 08 Jul 2022 08:43:39 +0300 Message-ID: <83pmig40s4.fsf@gnu.org> References: <877dkp2zr6.fsf@miha-pc> <874kfliksx.fsf@gnus.org> <87bkua8fga.fsf@gnus.org> <8335fh9lah.fsf@gnu.org> <87bku0g6h7.fsf@gnus.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="37913"; mail-complaints-to="usenet@ciao.gmane.io" Cc: larsi@gnus.org, 48029@debbugs.gnu.org, jakanakaevangeli@chiru.no To: Andrea Corallo Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Jul 08 07:44:09 2022 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1o9gmf-0009h9-0G for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 08 Jul 2022 07:44:09 +0200 Original-Received: from localhost ([::1]:47414 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1o9gme-000322-1c for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 08 Jul 2022 01:44:08 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:48362) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o9gmY-00031t-Ht for bug-gnu-emacs@gnu.org; Fri, 08 Jul 2022 01:44:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:36404) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1o9gmY-0000BP-0J for bug-gnu-emacs@gnu.org; Fri, 08 Jul 2022 01:44:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1o9gmX-0000zU-Te for bug-gnu-emacs@gnu.org; Fri, 08 Jul 2022 01:44:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 08 Jul 2022 05:44:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 48029 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: confirmed Original-Received: via spool by 48029-submit@debbugs.gnu.org id=B48029.16572590383789 (code B ref 48029); Fri, 08 Jul 2022 05:44:01 +0000 Original-Received: (at 48029) by debbugs.gnu.org; 8 Jul 2022 05:43:58 +0000 Original-Received: from localhost ([127.0.0.1]:58534 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o9gmK-0000yt-3g for submit@debbugs.gnu.org; Fri, 08 Jul 2022 01:43:58 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:35122) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o9gmJ-0000yh-3H for 48029@debbugs.gnu.org; Fri, 08 Jul 2022 01:43:47 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:38146) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o9gmD-00008b-GO; Fri, 08 Jul 2022 01:43:41 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=xIB4fG+1derWKdC1QhvNx4vkyuj1iq9p1WEcsGglFdo=; b=ajyojhGnsRaTRWYHycjI djyqyp4vCFDrGATs0lZ6EHg3HZ+xUoeMQuhcuZveyFa13UBhyOa7xJJUJ+hWV35AJ1fSBwjcbgjIo l7ul9K0Z1wydFyE5BLNs3wp5cJKcJbdtiGcuGpVmIls8eoBZJMfHFjeodAJuFh8Upcix4szsA/eeN w8HDX2Ru58kwTmI83Qrab+PBpWrjHuIJgizLpPlPLn55t1xVUh0vBta3SINvUuiwTmFINWJ9DR0q1 p5ZjD9JJwHw1/ByxQF9cScur288X9yR06rytcQ7bYYxRKBBIBnZpW8xRfTqYy9Axwyc2hGd+w6yYk fwoW1vKgRA0olQ==; Original-Received: from [87.69.77.57] (port=4098 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o9gmC-0005h6-I7; Fri, 08 Jul 2022 01:43:40 -0400 In-Reply-To: (message from Andrea Corallo on Thu, 07 Jul 2022 20:51:48 +0000) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:236426 Archived-At: > From: Andrea Corallo > Cc: Eli Zaretskii , 48029@debbugs.gnu.org, > jakanakaevangeli@chiru.no > Date: Thu, 07 Jul 2022 20:51:48 +0000 > > We have the symbol `nonascii-test-žžž' correct into our pipeline. > > Then we prepare the file that will be executed by the subprocess that > will do the actual compilation, we do this in `comp-final'. > > Here when we print `nonascii-test-žžž' using `prin1-to-string' this > becomes "nonascii-test-\x017e\x017e\x017e" (exploring it with the > debugger). > > This is then stored in the temp file I mentioned, the file has on top > ";; -*-coding: nil; -*- " and the symbol is shown as > "nonascii-test-\305\276\305\276\305\276" if I visit it on my emacs. > > Now two options, either we are not printing it as we should or either > the reader doesn't know he has to handle these non ascii characters > while reading back. > > I'm no expert in this area, I guess will be evident to experts what we > are not doing correctly here. Why do we have ";; -*-coding: nil; -*- "? I think that's the problem: it should be ";; -*-coding: utf-8; -*- " instead. Where does the nil come from? Lisp sources are by default UTF-8 encoded, so that should be the default for the temp file we write. Bonus points for using the actual encoding of the Lisp source file there (which in very rare cases can be something other than UTF-8). Thanks.