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#65198: 29.1; Emacs29.1 crash in function face_for_font Date: Thu, 10 Aug 2023 20:22:52 +0300 Message-ID: <83bkfeizgz.fsf@gnu.org> References: <83r0obi53o.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="10004"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 65198@debbugs.gnu.org To: =?UTF-8?Q?=E5=BC=A0=E4=BA=91=E5=B3=B0?= Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Aug 10 19:23:18 2023 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 1qU9NV-0002PS-Np for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 10 Aug 2023 19:23:17 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qU9NI-0003Id-HG; Thu, 10 Aug 2023 13:23:04 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qU9NG-0003HB-Ki for bug-gnu-emacs@gnu.org; Thu, 10 Aug 2023 13:23:02 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qU9NG-0000cN-C3 for bug-gnu-emacs@gnu.org; Thu, 10 Aug 2023 13:23:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qU9NF-0002dV-R3 for bug-gnu-emacs@gnu.org; Thu, 10 Aug 2023 13:23: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: Thu, 10 Aug 2023 17:23:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 65198 X-GNU-PR-Package: emacs Original-Received: via spool by 65198-submit@debbugs.gnu.org id=B65198.169168815310098 (code B ref 65198); Thu, 10 Aug 2023 17:23:01 +0000 Original-Received: (at 65198) by debbugs.gnu.org; 10 Aug 2023 17:22:33 +0000 Original-Received: from localhost ([127.0.0.1]:43958 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qU9Mn-0002co-B3 for submit@debbugs.gnu.org; Thu, 10 Aug 2023 13:22:33 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:44718) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qU9Ml-0002cc-A3 for 65198@debbugs.gnu.org; Thu, 10 Aug 2023 13:22:32 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qU9Mf-0000Wz-Qp; Thu, 10 Aug 2023 13:22:25 -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=IbVtyb5Qd0QXumRPHE41AXybXdNLLmlMKlb8OQ5eJ74=; b=j3XAYZ/9a0bMCsyWAHKj 4+RhHtyb/J25H9csJtOG/HJ2UQ5UyOHRbLO4y09DCwpBn0avt6cFl0RWNmkkW6bUYqUqKY0OecROd Xxae3iJl1VrxHNhtOdctuDlm0rgtZL6Ph2ir3LehaIKjBz3mtF5G9j+jyccg6WLBBPiJ/eRny1NhN hg3lhq1PRIDLpEhAavF71kVhkUZWX+4+jbEkJYcxXGkx3TQGlY/zpy3Zdk+b7GokcRpdBO+7hyba5 MLkz8UnEZBhSN2HVohgtBE12sm+gCRvigcI6HOxpAhUVAhz4/qPtQVZUkXiLb7fmcYtzSSPjtSueG ntEvQeRSdkm7AQ==; In-Reply-To: (message from =?UTF-8?Q?=E5=BC=A0=E4=BA=91=E5=B3=B0?= on Thu, 10 Aug 2023 22:56:23 +0800) 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-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:267151 Archived-At: > From: 张云峰 > Date: Thu, 10 Aug 2023 22:56:23 +0800 > > finally I fix this bug by removing a piece of code: > > (defun +set-chinese-font() > (interactive) > (set-fontset-font > t > 'han > (cond > ((string-equal system-type "windows-nt") > (cond > ((member "Microsoft YaHei" (font-family-list)) "Microsoft YaHei") > ((member "Microsoft JhengHei" (font-family-list)) "Microsoft JhengHei") > ((member "SimHei" (font-family-list)) "SimHei"))) > ((string-equal system-type "darwin") > (cond > ((member "Hei" (font-family-list)) "Hei") > ((member "Heiti SC" (font-family-list)) "Heiti SC") > ((member "Heiti TC" (font-family-list)) "Heiti TC"))) > ((string-equal system-type "gnu/linux") > (cond > ((member "WenQuanYi Micro Hei" (font-family-list)) "WenQuanYi > Micro Hei")))))) > > (add-hook 'buffer-list-update-hook '+set-chinese-font) I guess one of these fonts is faulty in some way? Or maybe you have neither of these fonts on that system, which would effectively specify that characters of the han script have no font at all? Of course, normally the latter should just cause the han characters to display as hex codes, not to cause crashes... Are you saying that just having the above in your customization and typing some Han character causes Emacs to crash? P.S. And please use Reply All to reply, so that the bug address is kept on the CC list.