From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Alan Third Newsgroups: gmane.emacs.bugs Subject: bug#48902: 28.0.50; Directory names containing apostrophes and backticks cause problems Date: Tue, 8 Jun 2021 13:12:56 +0100 Message-ID: References: <51cb-60bf4900-1dd-2840bc80@23790836> <875yyoo9gy.fsf@gnus.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="28034"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 48902@debbugs.gnu.org, Rudolf =?UTF-8?Q?Adamkovi=C4=8D?= , naofumi@yasufuku.dev To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Jun 08 14:20:13 2021 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 1lqaiL-00073s-4o for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 08 Jun 2021 14:20:13 +0200 Original-Received: from localhost ([::1]:38000 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lqaiK-0005En-5b for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 08 Jun 2021 08:20:12 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:56486) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lqacM-0006ic-Be for bug-gnu-emacs@gnu.org; Tue, 08 Jun 2021 08:14:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:46063) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lqacM-00051Q-1C for bug-gnu-emacs@gnu.org; Tue, 08 Jun 2021 08:14:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lqacL-00059L-NP for bug-gnu-emacs@gnu.org; Tue, 08 Jun 2021 08:14:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Alan Third Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 08 Jun 2021 12:14:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 48902 X-GNU-PR-Package: emacs Original-Received: via spool by 48902-submit@debbugs.gnu.org id=B48902.162315438619714 (code B ref 48902); Tue, 08 Jun 2021 12:14:01 +0000 Original-Received: (at 48902) by debbugs.gnu.org; 8 Jun 2021 12:13:06 +0000 Original-Received: from localhost ([127.0.0.1]:57609 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lqabS-00057u-9A for submit@debbugs.gnu.org; Tue, 08 Jun 2021 08:13:06 -0400 Original-Received: from [217.169.17.33] (port=51298 helo=breton.holly.idiocy.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lqabP-00057N-Ui for 48902@debbugs.gnu.org; Tue, 08 Jun 2021 08:13:04 -0400 Original-Received: by breton.holly.idiocy.org (Postfix, from userid 501) id 75F1C202C69835; Tue, 8 Jun 2021 13:12:56 +0100 (BST) Mail-Followup-To: Alan Third , Lars Ingebrigtsen , naofumi@yasufuku.dev, 48902@debbugs.gnu.org, Rudolf =?UTF-8?Q?Adamkovi=C4=8D?= Content-Disposition: inline In-Reply-To: <875yyoo9gy.fsf@gnus.org> 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:208230 Archived-At: On Tue, Jun 08, 2021 at 01:57:01PM +0200, Lars Ingebrigtsen wrote: > naofumi@yasufuku.dev writes: > > > diff --git a/src/nsimage.m b/src/nsimage.m > > index fa81a41a51..8c7a3d9a09 100644 > > --- a/src/nsimage.m > > +++ b/src/nsimage.m > > @@ -262,7 +262,7 @@ + (instancetype)allocInitFromFile: (Lisp_Object)file > > found = ENCODE_FILE (found); > > > > image = [[EmacsImage alloc] initByReferencingFile: > > - [NSString stringWithLispString: found]]; > > + [NSString stringWithUTF8String: SSDATA (found)]]; > > Hm... I'm not very familiar at all with the Objective C code here... > but shouldn't "found" here be a Lisp string so that stringWithLispString > would do the right thing? It's always possible that stringWithLispString isn't doing the right thing. It's implemented at nsfns.m:3026. I know almost nothing about UTF8/UTF16 so while it looks like it's doing the right thing to me, I could be entirely wrong. -- Alan Third