From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Ihor Radchenko Newsgroups: gmane.emacs.bugs Subject: bug#57693: 29.0.50; Is there a more reliable version of `char-displayable-p'? Date: Wed, 14 Sep 2022 09:52:59 +0800 Message-ID: <8735cuzpqc.fsf@localhost> References: <87v8pw1xyo.fsf@localhost> <83a678d5w6.fsf@gnu.org> <878rmr25tk.fsf@localhost> <83czc3bvbg.fsf@gnu.org> <87y1urybt6.fsf@localhost> <837d2bbr2s.fsf@gnu.org> <87edwjy77h.fsf@localhost> <831qsjboy0.fsf@gnu.org> <87v8puw945.fsf@localhost> <838rmq9rfr.fsf@gnu.org> <837d2a9qcu.fsf@gnu.org> <875yhtw3ed.fsf@localhost> <83ills9741.fsf@gnu.org> <878rmoujyx.fsf@localhost> <834jxb5xp6.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="8076"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 57693@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Sep 14 03:53:12 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 1oYHaR-0001sq-TW for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 14 Sep 2022 03:53:11 +0200 Original-Received: from localhost ([::1]:48470 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oYHaQ-0000w5-7L for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 13 Sep 2022 21:53:10 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:58050) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oYHaJ-0000vo-8o for bug-gnu-emacs@gnu.org; Tue, 13 Sep 2022 21:53:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:36276) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oYHaI-0007g4-6c for bug-gnu-emacs@gnu.org; Tue, 13 Sep 2022 21:53:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oYHaH-0001i8-Q4 for bug-gnu-emacs@gnu.org; Tue, 13 Sep 2022 21:53:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Ihor Radchenko Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 14 Sep 2022 01:53:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 57693 X-GNU-PR-Package: emacs Original-Received: via spool by 57693-submit@debbugs.gnu.org id=B57693.16631203356521 (code B ref 57693); Wed, 14 Sep 2022 01:53:01 +0000 Original-Received: (at 57693) by debbugs.gnu.org; 14 Sep 2022 01:52:15 +0000 Original-Received: from localhost ([127.0.0.1]:53208 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oYHZX-0001h7-E7 for submit@debbugs.gnu.org; Tue, 13 Sep 2022 21:52:15 -0400 Original-Received: from mail-pj1-f51.google.com ([209.85.216.51]:56122) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oYHZV-0001gq-2s for 57693@debbugs.gnu.org; Tue, 13 Sep 2022 21:52:13 -0400 Original-Received: by mail-pj1-f51.google.com with SMTP id fs14so13039340pjb.5 for <57693@debbugs.gnu.org>; Tue, 13 Sep 2022 18:52:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:message-id:date:references:in-reply-to:subject:cc:to :from:from:to:cc:subject:date; bh=RIoYBr7VeJoyqx4Sq5aFq8E2Hplqye6gvKw5fdKcki8=; b=DTWy2KLOpjslZ9xsdDTIXUmmLT3fFFN5F8rHUDQEinpMWwLjAgxtgWWQf2iKLn+/sQ +bdBsQUFtP9Sew26CVYYjqQNqxUyAf3ezZ9UhsDhe2JR1/AWJfZdEaxhistIQ9P7wiO9 KPZ5zAYPX6fSZb8OHHeG7/sUmRNy//71cgrh96oicq4lgrWK1f+v2d5zdvwM2lkWjvmn V0463q/vRdjggkskwKTDwr5dqUhcaUpL4x/M37tysZvw/EvDY7iMiqsEykRqzOVOM1l0 bKXkNXsx2g08hF4AZXi0K3T4Tuzmk+039FcDjJavFmwWqShSEn7qZBVT8zj32449bMJl u6Pg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=mime-version:message-id:date:references:in-reply-to:subject:cc:to :from:x-gm-message-state:from:to:cc:subject:date; bh=RIoYBr7VeJoyqx4Sq5aFq8E2Hplqye6gvKw5fdKcki8=; b=F/6VLG+SCXWdnFYI0WI+lihRSd9ubmk9Sg6rd23qoIbJGqZcd44kJwsP2wjNygTsSY /4vE/jXPOxARwtYUMQ2aGPLJkHhlMo5a9QZ1vZLGM/Pu38b4MfoYZgt8hdJVOYSmD6Ey 6G5FhiSrckSQX1h884AqUKpEkG1RDmAfbDCGimQWPBpjY2MUc+4G7DucRg0RmFODRsIJ gphmj33EpBLPa/lIVjWvUicy2Bi0CdJMwzlh6X3oTDmZxlIBTzv/VXUA57Hq0yTQURe/ cdUHEvbParsX+v2Nhi8VqYP9sFb81Qp6rYmELJBlzR68K13DgCwZK1C1VdLo5OZNYJm9 BWCg== X-Gm-Message-State: ACgBeo3ZtdZoxDYc4YMtAKE3ZYUWNEnD7trmYkYsWdEVc5/cQqy3HvYU U4vyv72ZTvWzidHMSeWcE/U= X-Google-Smtp-Source: AA6agR68+OZJogeSXQ8ZHxWCsBiJ5D58KD6CK4YC0HZ+SUs0tYDMqGKWm6+Z3vRkSrmpcg9uNVUaGQ== X-Received: by 2002:a17:902:f816:b0:178:3bc6:dfd with SMTP id ix22-20020a170902f81600b001783bc60dfdmr9336436plb.10.1663120326149; Tue, 13 Sep 2022 18:52:06 -0700 (PDT) Original-Received: from localhost ([2409:8970:a81:48f7:8ec6:81ff:fe70:339d]) by smtp.gmail.com with ESMTPSA id x127-20020a626385000000b00537a6b81bb7sm8822229pfb.148.2022.09.13.18.52.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 13 Sep 2022 18:52:05 -0700 (PDT) In-Reply-To: <834jxb5xp6.fsf@gnu.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:242420 Archived-At: Eli Zaretskii writes: > So an efficient method of testing this for terminal would be: > > . if terminal-coding-system is UTF-8, call internal-char-font to see On my side, (terminal-coding-system) returns 'utf-8-unix However, I imagine that other utf-8 variants may be returned, say, on Windows. Is there some standard way to know is a coding system is utf-8 or not? -- Ihor Radchenko, Org mode contributor, Learn more about Org mode at https://orgmode.org/. Support Org development at https://liberapay.com/org-mode, or support my work at https://liberapay.com/yantar92