A funny way to crash GNU Emacs(under X) via “emoji”

While configuring my Emacs, I found a way to crash Emacs with emoji:

  1. Add this to either ~/.emacs or ~/.emacs.d/init.el:
    (set-fontset-font "fontset-default" 'symbol "Noto Color Emoji")
  2. Insert a emoji, such as “😂”(You can use C-x 8<RET>1f602<RET>)

Boom! Your Emacs crashed!!!

According to Emacs Stack Exchange:

Emacs for Linux uses XFT for font rendering, and XFT doesn’t yet support the color fonts. See this mailing list thread from Dec 2015. Richard Stallman writes in that thread that it’s a low priority and they don’t care about color fonts.

发表评论

Fill in your details below or click an icon to log in:

WordPress.com 徽标

You are commenting using your WordPress.com account. Log Out /  更改 )

Google photo

You are commenting using your Google account. Log Out /  更改 )

Twitter picture

You are commenting using your Twitter account. Log Out /  更改 )

Facebook photo

You are commenting using your Facebook account. Log Out /  更改 )

Connecting to %s

这个站点使用 Akismet 来减少垃圾评论。了解你的评论数据如何被处理