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#42904: [PATCH] Non-Unicode frame title crashes Emacs on macOS Date: Tue, 18 Aug 2020 17:40:33 +0300 Message-ID: <83a6ysf25a.fsf@gnu.org> References: <83lfidgtc7.fsf@gnu.org> <838sedgq2x.fsf@gnu.org> <02F52D43-7EAB-4E61-A567-E8CCD11D856B@acm.org> <20200817195610.GA70682@breton.holly.idiocy.org> <3F71EF82-A143-4E3A-AEF3-8A236091891D@acm.org> <20200818084306.GA89999@breton.holly.idiocy.org> <83eeo4f8gs.fsf@gnu.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="31050"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 42904@debbugs.gnu.org, alan@idiocy.org To: Mattias =?UTF-8?Q?Engdeg=C3=A5rd?= Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Aug 18 17:39:09 2020 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 1k83hd-0007yn-Mr for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 18 Aug 2020 17:39:09 +0200 Original-Received: from localhost ([::1]:43474 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1k83hc-0005UF-Lx for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 18 Aug 2020 11:39:08 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:41166) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1k82nO-0003Jv-Je for bug-gnu-emacs@gnu.org; Tue, 18 Aug 2020 10:41:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:53288) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1k82nO-0003Sr-AS for bug-gnu-emacs@gnu.org; Tue, 18 Aug 2020 10:41:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1k82nO-0004xW-8x for bug-gnu-emacs@gnu.org; Tue, 18 Aug 2020 10:41:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 18 Aug 2020 14:41:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 42904 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 42904-submit@debbugs.gnu.org id=B42904.159776165919045 (code B ref 42904); Tue, 18 Aug 2020 14:41:02 +0000 Original-Received: (at 42904) by debbugs.gnu.org; 18 Aug 2020 14:40:59 +0000 Original-Received: from localhost ([127.0.0.1]:36601 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k82nK-0004x7-Rh for submit@debbugs.gnu.org; Tue, 18 Aug 2020 10:40:59 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:59268) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k82nH-0004ws-12 for 42904@debbugs.gnu.org; Tue, 18 Aug 2020 10:40:57 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:53069) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1k82nA-0003Mv-AD; Tue, 18 Aug 2020 10:40:48 -0400 Original-Received: from [176.228.60.248] (port=4509 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1k82n9-0001aG-Aq; Tue, 18 Aug 2020 10:40:47 -0400 In-Reply-To: (message from Mattias =?UTF-8?Q?Engdeg=C3=A5rd?= on Tue, 18 Aug 2020 16:11:02 +0200) 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:185503 Archived-At: > From: Mattias EngdegÄrd > Date: Tue, 18 Aug 2020 16:11:02 +0200 > Cc: Alan Third , 42904@debbugs.gnu.org > > 18 aug. 2020 kl. 14.24 skrev Eli Zaretskii : > > > It isn't wrong (and there's no need to worry about alignment in this > > case, AFAIK). > > Do you mean that SDATA is guaranteed to be aligned, or that no NS platforms that Emacs runs on (or is likely to run on in the near future, such as macOS on arm64) trap on unaligned? Both, AFAIK. > it is not reasonable to depend on non-Unicode characters being translated to spaces We are not the only program which does that, but. > > Why is it a problem to display a space instead of invalid bytes in > > this case? > > A problem is not necessary for a change to be desirable. The Unicode replacement character clearly indicates that something could not be encoded correctly, and the exact position for it But that character only makes sense when it can be displayed, because otherwise no one will realize what was the problem. Anyway, this discussion should be on emacs-devel, not as part of an unrelated bug report.