From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Mike FABIAN Newsgroups: gmane.emacs.bugs Subject: bug#15420: 24.3; Symbols like =?UTF-8?Q?=F0=9F=9A=B4?= (U+1F6B4) are not displayed by default Date: Thu, 19 Sep 2013 15:58:55 +0200 Message-ID: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1379605519 12555 80.91.229.3 (19 Sep 2013 15:45:19 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 19 Sep 2013 15:45:19 +0000 (UTC) To: 15420@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Sep 19 17:45:22 2013 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1VMgPv-0001yX-M9 for geb-bug-gnu-emacs@m.gmane.org; Thu, 19 Sep 2013 17:45:19 +0200 Original-Received: from localhost ([::1]:51796 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VMgPv-00057z-C1 for geb-bug-gnu-emacs@m.gmane.org; Thu, 19 Sep 2013 11:45:19 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:34518) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VMgPn-00057c-Ai for bug-gnu-emacs@gnu.org; Thu, 19 Sep 2013 11:45:16 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VMgPf-0005aM-6Y for bug-gnu-emacs@gnu.org; Thu, 19 Sep 2013 11:45:11 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:41099) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VMgPf-0005Zv-2H for bug-gnu-emacs@gnu.org; Thu, 19 Sep 2013 11:45:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1VMgPe-0003qP-2Y for bug-gnu-emacs@gnu.org; Thu, 19 Sep 2013 11:45:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Mike FABIAN Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 19 Sep 2013 15:45:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 15420 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.137960549414746 (code B ref -1); Thu, 19 Sep 2013 15:45:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 19 Sep 2013 15:44:54 +0000 Original-Received: from localhost ([127.0.0.1]:49392 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VMgPU-0003pk-L3 for submit@debbugs.gnu.org; Thu, 19 Sep 2013 11:44:53 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:36483) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VMelM-0001Ac-TO for submit@debbugs.gnu.org; Thu, 19 Sep 2013 09:59:22 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VMelC-0005tW-9J for submit@debbugs.gnu.org; Thu, 19 Sep 2013 09:59:15 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:48006) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VMelC-0005tS-5q for submit@debbugs.gnu.org; Thu, 19 Sep 2013 09:59:10 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:38134) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VMel6-0005p8-N9 for bug-gnu-emacs@gnu.org; Thu, 19 Sep 2013 09:59:10 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VMel1-0005rv-B8 for bug-gnu-emacs@gnu.org; Thu, 19 Sep 2013 09:59:04 -0400 Original-Received: from mail-ea0-x22f.google.com ([2a00:1450:4013:c01::22f]:38572) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VMel0-0005rr-Vy for bug-gnu-emacs@gnu.org; Thu, 19 Sep 2013 09:58:59 -0400 Original-Received: by mail-ea0-f175.google.com with SMTP id m14so4167582eaj.6 for ; Thu, 19 Sep 2013 06:58:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:subject:date:message-id:mime-version:content-type :content-transfer-encoding; bh=hIiYjgwNLtZFDB9454L/7eJzEB3Uzx9S6hTrziXL7iE=; b=JZ3seYMbxlfaqzP62XR17AfAlocyfiD7K94uTHBfFW1PQ12QT2aR+DpzSYp6fxzKzi J9PSuQ5Z5vSGsmQ0h2VITrvRXUpzg4R4aRVTIGAQ62LbVywLSBP3chqKyJi2azcvq8oH 1mpp+eG3Ll8gIPiB0esOFhQeQBcPQxtJS53eSWWdLaeCGCuxR5S9enGCdhtdJiKKnCJE oYMYj6lzDl8PzyWSA2iO/TBPK18c5f4jQCuviIaCO1jVtBxtvyCota2ghV4cfjn53C6Q 9VrY5mxTaJ88FCym3caUJq5EdcLP7pSUBF5+1DSK8rLCMgLO2F2xwauF1D9CCE1QGgZ1 yjFQ== X-Received: by 10.14.22.8 with SMTP id s8mr1147909ees.108.1379599137753; Thu, 19 Sep 2013 06:58:57 -0700 (PDT) Original-Received: from ari.site (ppp-88-217-46-206.dynamic.mnet-online.de. [88.217.46.206]) by mx.google.com with ESMTPSA id r48sm11505616eev.14.1969.12.31.16.00.00 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Thu, 19 Sep 2013 06:58:57 -0700 (PDT) Original-Received: from ari.site (localhost [127.0.0.1]) by ari.site (Postfix) with ESMTP id 55C1061A5C for ; Thu, 19 Sep 2013 15:58:55 +0200 (CEST) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Mailman-Approved-At: Thu, 19 Sep 2013 11:44:51 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 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.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:78584 Archived-At: After emacs -Q, try to load a file containing =F0=9F=9A=B2 U+1F6B2 BICYCLE =F0=9F=9A=B4 U+1F6B4 BICYCLIST =F0=93=80=80 U+13000 EGYPTIAN HIEROGLYPH A001 Glyhps for these characters are not displayed by default, even when fonts with these glyphs are installed. For example "Symbola" by George Douros (http://users.teilar.gr/~g1951d/) has =F0=9F=9A=B2 U+1F6B2 BICYCLE and =F0=9F=9A=B4 U+1F6B4 BICYCLIST and "Noto Sans Egyptian Hieroglyphs" from Google has =F0=93=80=80 U+13000 EGYPT= IAN HIEROGLYPH A001. Instead boxes showing the codepoints are displayed. A patch like the following to fontset.el can make this work by default: commit 41fbdec67af4ea0dd2261c31554a5882e5cc4db6 Author: Mike FABIAN Date: Tue Sep 17 18:41:50 2013 +0200 Display symbols like =F0=9F=9A=B4 U+1F6B4 BICYCLIST and Egyptian Hierog= lyphs correctly by default diff --git a/lisp/international/fontset.el b/lisp/international/fontset.el index 2e15c43..25e575d 100644 --- a/lisp/international/fontset.el +++ b/lisp/international/fontset.el @@ -653,6 +653,10 @@ '("gnu-unifont" . "iso10646-1") nil 'prepend) (set-fontset-font "fontset-default" nil '("mutt-clearlyu" . "iso10646-1") nil 'prepend) + (set-fontset-font "fontset-default" nil + '("Symbola" . "iso10646-1") nil 'prepend) + (set-fontset-font "fontset-default" nil + '("Noto Sans Egyptian Hieroglyphs" . "iso10646-1") nil = 'prepend) (set-fontset-font "fontset-default" '(#x20000 . #x2FFFF) '(nil . "unicode-sip")) But I am not sure whether this patch is the right way to do it. Because it seems strange having to hardcode the font names "Symbola" and "Noto Sans Egyptian Hieroglyphs". Is there any other way to do it? Isn=E2=80=99t it possible to make glyphs for such symbols display correctly= by default if *any* font containing these symbols is installed on the system? How? ---------------------------------------------------------------------- In GNU Emacs 24.3.9 (x86_64-unknown-linux-gnu, GTK+ Version 3.8.4) of 2013-09-18 on ari.site Windowing system distributor `Fedora Project', version 11.0.11402000 System Description: Fedora release 19 (Schr=C3=B6dinger=E2=80=99s Cat) Configured using: `configure '--prefix=3D/packages/stow/emacs-24.3.20130917'' Important settings: value of $LANG: ja_JP.UTF-8 value of $XMODIFIERS: @im=3Dibus locale-coding-system: utf-8-unix default enable-multibyte-characters: t Major mode: Fundamental Minor modes in effect: tooltip-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Recent input: M-x m a i m i k e=20 . f a b i a n @ g m x . d e C-n t e s s t =20 t C-n C-n t e s t C-x C-s C-g =20 =20 =20 =20 r e d h a t . c o m C-d C-d=20 C-d C-d C-d C-d C-d C-d C-x C-s C-g C-c C-c / =20 s m t p =20 l o c a l h o s t =20 M-x r e p o r t =20 =20 S y m b o l s l SPC l i k e SPC C-e SPC=20 U + ( C-e 1 F 6 B 4 ) SPC=20 a n d SPC E g y p t i o n a=20 n SPC H i e r o g l y p h s , SPC e . g . SPC M-x M-x=20 Recent messages: Sending... Setting `send-mail-function' temporarily since "emacs -q" would overwrite c= ustomizations Setting `smtpmail-smtp-server' temporarily since "emacs -q" would overwrite= customizations Setting `smtpmail-smtp-service' temporarily since "emacs -q" would overwrit= e customizations Sending email=20 Sending email done Sending...done completing-read-default: Command attempted to use minibuffer while in minib= uffer Quit user-error: End of history; no default available Load-path shadows: None found. Features: (shadow sort emacsbug network-stream starttls tls message format-spec rfc822 mml mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader mail-extr smtpmail auth-source eieio byte-opt bytecomp byte-compile cconv gnus-util password-cache cus-edit cus-start cus-load wid-edit mailalias sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils help-mode easymenu time-date japan-util tooltip ediff-hook vc-hooks lisp-float-type mwheel x-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list newcomment lisp-mode register page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote make-network-process dbusbind dynamic-setting system-font-setting font-render-setting move-toolbar gtk x-toolkit x multi-tty emacs) --=20 Mike FABIAN =E2=98=8F Office: +49-69-365051027, internal 8875027 =E7=9D=A1=E7=9C=A0=E4=B8=8D=E8=B6=B3=E3=81=AF=E3=81=84=E3=81=84=E4=BB=95=E4= =BA=8B=E3=81=AE=E6=95=B5=E3=81=A0=E3=80=82