From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#31459: 25.3; Uninitialised unicode-property-table-internal Date: Tue, 15 May 2018 12:34:36 +0300 Message-ID: References: <87bmdhi9ox.fsf@nexoid.at> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1526376790 26623 195.159.176.226 (15 May 2018 09:33:10 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 15 May 2018 09:33:10 +0000 (UTC) User-Agent: K-9 Mail for Android To: 31459@debbugs.gnu.org, craven@gmx.net Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue May 15 11:33:06 2018 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fIWKO-0006nA-1I for geb-bug-gnu-emacs@m.gmane.org; Tue, 15 May 2018 11:33:04 +0200 Original-Received: from localhost ([::1]:54695 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fIWMU-0007rQ-VT for geb-bug-gnu-emacs@m.gmane.org; Tue, 15 May 2018 05:35:15 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:53156) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fIWML-0007pS-Uk for bug-gnu-emacs@gnu.org; Tue, 15 May 2018 05:35:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fIWMI-0000uh-Ph for bug-gnu-emacs@gnu.org; Tue, 15 May 2018 05:35:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:55349) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fIWMI-0000uY-M1 for bug-gnu-emacs@gnu.org; Tue, 15 May 2018 05:35:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1fIWMI-0002dm-F0 for bug-gnu-emacs@gnu.org; Tue, 15 May 2018 05:35:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 15 May 2018 09:35:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 31459 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org, Peter , 31459@debbugs.gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.152637689510121 (code B ref -1); Tue, 15 May 2018 09:35:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 15 May 2018 09:34:55 +0000 Original-Received: from localhost ([127.0.0.1]:35010 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fIWMB-0002dB-2f for submit@debbugs.gnu.org; Tue, 15 May 2018 05:34:55 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:33881) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fIWM9-0002cy-Nh for submit@debbugs.gnu.org; Tue, 15 May 2018 05:34:54 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fIWM3-0000pl-Ki for submit@debbugs.gnu.org; Tue, 15 May 2018 05:34:48 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:36524) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1fIWM3-0000pZ-Hb for submit@debbugs.gnu.org; Tue, 15 May 2018 05:34:47 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:53078) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fIWM1-0007aC-2E for bug-gnu-emacs@gnu.org; Tue, 15 May 2018 05:34:47 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fIWLx-0000ng-Uz for bug-gnu-emacs@gnu.org; Tue, 15 May 2018 05:34:45 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:58502) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fIWLx-0000na-RB; Tue, 15 May 2018 05:34:41 -0400 Original-Received: from [176.13.233.216] (port=16346 helo=[10.130.175.155]) by fencepost.gnu.org with esmtpsa (TLS1.2:DHE_RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1fIWLw-00081m-AV; Tue, 15 May 2018 05:34:41 -0400 In-Reply-To: <87bmdhi9ox.fsf@nexoid.at> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.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" Xref: news.gmane.org gmane.emacs.bugs:146186 Archived-At: On May 15, 2018 11:50:54 AM GMT+03:00, Peter wrote: > I've run into the following bug with Emacs GNU Emacs 25=2E3=2E1 > (x86_64-pc-linux-gnu, GTK+ Version 3=2E22=2E26) of 2018-02-09: >=20 > When starting up a new Emacs with `emacs -Q', running the following > elisp results in garbage: >=20 > (let ((names (unicode-property-table-internal 'name))) > (message "%s" (get-unicode-property-internal names #x1f600)) > ;; grinning face emoji, should return "GRINNING FACE" > ) >=20 > This does not in fact show "GRINNING FACE", but what seems like a > random > string, e=2Eg=2E (after string-to-list): > (0 1805 140 1 3 534 447 0 140 3 1804 64 1314 0 534 140 3 104 429 1 85 > 9 534 447 1 104 1279 1056 2 1803 6 266 447 1 58 3455 1 52 1802 0 1801 > 140 0 534 140 3 534 447 0 140 3454 3453 1302 0 1800 140 0 534 140 3 > 314 6 672 447 1 55 1811 0 3452 46 46 46 46) >=20 > *After* I run M-x counsel-unicode-char, things work fine=2E >=20 > It seems that the unicode property table is somehow uninitialised > initially, and gets initialised by something that counsel-unicode-char > does=2E Is there a way I can run this initialisation myself? I've looked > at the elisp and C sources, but haven't been able to find what I'm > doing incorrectly here :-/ >=20 > Thanks for any help with this! >=20 > Greetings, Peter >=20 >=20 >=20 > In GNU Emacs 25=2E3=2E1 (x86_64-pc-linux-gnu, GTK+ Version 3=2E22=2E26) > of 2018-02-09 built on bisson > Windowing system distributor 'The X=2EOrg Foundation', version > 11=2E0=2E11906000 > Configured using: > 'configure --prefix=3D/usr --sysconfdir=3D/etc --libexecdir=3D/usr/lib > --localstatedir=3D/var --with-x-toolkit=3Dgtk3 --with-xft --with-module= s > 'CFLAGS=3D-march=3Dx86-64 -mtune=3Dgeneric -O2 -pipe > -fstack-protector-strong > -fno-plt' CPPFLAGS=3D-D_FORTIFY_SOURCE=3D2 > LDFLAGS=3D-Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now' >=20 > Configured features: > XPM JPEG TIFF GIF PNG RSVG IMAGEMAGICK SOUND GPM DBUS GCONF GSETTINGS > NOTIFY ACL GNUTLS LIBXML2 FREETYPE M17N_FLT LIBOTF XFT ZLIB > TOOLKIT_SCROLL_BARS GTK3 X11 MODULES >=20 > Important settings: > value of $LANG: en_GB=2EUTF-8 > locale-coding-system: utf-8-unix Why are you using an internal function instead of get-char-code-property?