From: Eli Zaretskii <eliz@gnu.org>
To: Ulrich Mueller <ulm@gentoo.org>
Cc: 30788@debbugs.gnu.org, mats.lidell@cag.se
Subject: bug#30788: 27.0.50; Getting 'char-displayable-p: Invalid hash table rehash size: 1.0' when starting emacs -Q
Date: Wed, 14 Mar 2018 18:15:20 +0200 [thread overview]
Message-ID: <837eqeskfb.fsf@gnu.org> (raw)
In-Reply-To: <23208.50643.35893.580662@a1i15.kph.uni-mainz.de> (message from Ulrich Mueller on Wed, 14 Mar 2018 07:48:51 +0100)
> Date: Wed, 14 Mar 2018 07:48:51 +0100
> Cc: 30788@debbugs.gnu.org,
> mats.lidell@cag.se
> From: Ulrich Mueller <ulm@gentoo.org>
>
> >>>>> On Wed, 14 Mar 2018, Eli Zaretskii wrote:
>
> > OK, thanks. Can you tell when this code is called from Emacs?
> > I don't see any direct calls to FcConfigEnsure in the sources.
>
> (gdb) bt
> #0 FcConfigEnsure ()
> at /var/tmp/portage/media-libs/fontconfig-2.13.0/work/fontconfig-2.13.0/src/fccfg.c:40
> #1 0x00007fffeeb2a849 in FcConfigInit ()
> at /var/tmp/portage/media-libs/fontconfig-2.13.0/work/fontconfig-2.13.0/src/fccfg.c:71
> #2 0x00007fffeeb37c95 in IA__FcInit ()
> at /var/tmp/portage/media-libs/fontconfig-2.13.0/work/fontconfig-2.13.0/src/fcinit.c:192
> #3 0x00007ffff44854b3 in XftInit (config=config@entry=0x0)
> at /var/tmp/portage/x11-libs/libXft-2.3.2/work/libXft-2.3.2/src/xftinit.c:33
> #4 0x00000000004ea92b in xg_initialize () at gtkutil.c:5272
> #5 0x00000000004d0a13 in x_term_init (
> display_name=display_name@entry=0x2c61b24,
> xrm_option=xrm_option@entry=0x0, resource_name=0x2c676a8 "emacs-27-vcs")
> at xterm.c:12429
Thanks. So the patch below should fix the problem, I think. Can you
test it?
diff --git a/src/xterm.c b/src/xterm.c
index c5163aa..7b445e5 100644
--- a/src/xterm.c
+++ b/src/xterm.c
@@ -12411,12 +12411,16 @@ x_term_init (Lisp_Object display_name, char *xrm_option, char *resource_name)
unrequest_sigio (); /* See comment in x_display_ok. */
gtk_init (&argc, &argv2);
request_sigio ();
- fixup_locale ();
g_log_remove_handler ("GLib", id);
xg_initialize ();
+ /* Do this after the call to xg_initialize, because when
+ Fontconfig is used, xg_initialize calls its initialization
+ function which in some versions of Fontconfig calls setlocale. */
+ fixup_locale ();
+
dpy = DEFAULT_GDK_DISPLAY ();
#if ! GTK_CHECK_VERSION (2, 90, 0)
next prev parent reply other threads:[~2018-03-14 16:15 UTC|newest]
Thread overview: 30+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-03-12 22:12 bug#30788: 27.0.50; Getting 'char-displayable-p: Invalid hash table rehash size: 1.0' when starting emacs -Q Mats Lidell
2018-03-13 3:44 ` Eli Zaretskii
2018-03-13 10:14 ` Ulrich Mueller
2018-03-13 16:14 ` Eli Zaretskii
2018-03-13 17:42 ` Mats Lidell
2018-03-13 18:08 ` Eli Zaretskii
2018-03-13 18:58 ` Ulrich Mueller
2018-03-13 19:07 ` Ulrich Mueller
2018-03-13 19:32 ` Eli Zaretskii
2018-03-13 20:06 ` Ulrich Mueller
2018-03-14 3:32 ` Eli Zaretskii
2018-03-14 6:48 ` Ulrich Mueller
2018-03-14 16:15 ` Eli Zaretskii [this message]
2018-03-14 17:57 ` Ulrich Mueller
2018-03-14 18:15 ` Eli Zaretskii
2018-03-14 21:19 ` Ulrich Mueller
2018-03-16 2:45 ` Noam Postavsky
2018-03-16 3:38 ` Eli Zaretskii
2018-03-13 21:26 ` Ulrich Mueller
2018-05-04 21:58 ` Peter Dyballa
2018-05-04 22:13 ` Glenn Morris
2018-05-05 8:06 ` Peter Dyballa
2018-05-15 14:02 ` Peter Dyballa
2018-05-15 17:06 ` Eli Zaretskii
2018-05-15 21:38 ` Peter Dyballa
2018-05-16 2:30 ` Eli Zaretskii
2018-05-16 23:22 ` Peter Dyballa
2018-05-17 14:56 ` Eli Zaretskii
2018-05-19 11:21 ` Peter Dyballa
2018-05-19 11:45 ` Philipp Stephani
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=837eqeskfb.fsf@gnu.org \
--to=eliz@gnu.org \
--cc=30788@debbugs.gnu.org \
--cc=mats.lidell@cag.se \
--cc=ulm@gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).