From debbugs-submit-bounces@debbugs.gnu.org Sun Dec 20 12:31:15 2020 Received: (at submit) by debbugs.gnu.org; 20 Dec 2020 17:31:15 +0000 Received: from localhost ([127.0.0.1]:45515 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kr2Y6-00031j-33 for submit@debbugs.gnu.org; Sun, 20 Dec 2020 12:31:15 -0500 Received: from lists.gnu.org ([209.51.188.17]:45838) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kr2Y4-0002zu-8O for submit@debbugs.gnu.org; Sun, 20 Dec 2020 12:31:12 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:57152) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kr2Y3-0005YR-Vp for bug-gnu-emacs@gnu.org; Sun, 20 Dec 2020 12:31:11 -0500 Received: from mout.web.de ([212.227.15.3]:38859) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kr2Xy-0000Ro-Sy for bug-gnu-emacs@gnu.org; Sun, 20 Dec 2020 12:31:11 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=web.de; s=dbaedf251592; t=1608485463; bh=YjBGqf0m1a/3Uw/OcgNYq6B0Vq7NLwzz/lC95p0hctk=; h=X-UI-Sender-Class:To:Subject:From:Date; b=f//g6ZYDN6b3EpGQf3t6VkRlsjQewCx5cxNpjtzNLvzFiRTs7QM8/kdBDWv3mQKnE xEYVZIPhPFAfCyUKUCM23e43oImSkjgVGDCOBGvL9gbs+AaOG6nOT742aYgks1HiHw 2JkemaLT+89RPhQ8I+jAgAqcgeukPQ812+NW0xHI= X-UI-Sender-Class: c548c8c5-30a9-4db5-a2e7-cb6cb037b8f9 Received: from [192.168.2.104] ([217.241.90.99]) by smtp.web.de (mrweb006 [213.165.67.108]) with ESMTPSA (Nemesis) id 1MDdy7-1kxx6e0clj-00AYHP for ; Sun, 20 Dec 2020 18:31:03 +0100 To: bug-gnu-emacs@gnu.org Subject: 28.0.50; Native compiled function returns raw bytes, not string From: Alexander Miller Message-ID: Date: Sun, 20 Dec 2020 18:36:46 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.6.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable Content-Language: en-US X-Provags-ID: V03:K1:UU570dkELObtakUBtEt8Tq75AAD4AQyXH/m7zLaETfoqzuoTjmL 7i286QuXkh8gBTlufDcUxR+LyyPLEUCbXXceTo+Se8AiNoCgWqwHh4vPYofXXH+e+omuEQM vvexwjws3kCtiZwnTMQunRtfmgSozpOqL15rlZoLzLEc6IR5ZiwA/5dosGFMYz8i15rSB28 YrTalUdjfNfcx2FAB6x0A== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:07XkiS9KMhQ=:yihQV2H0wUmsoCyBOz2+An PZ39cts1Q3ks/kiVIdXf4e6LxcXNsoLMHfugBIZ5FJ6fahmDnYud33dN9SE0Q/UgL3OXAKbXX qFtMMLHpc2Kg3Eu+P3EwWmvJLrQUX1XtWK5k1RcoRiG/uqxjwy29S25uUBFf61V0yOlgvZTp1 5m9ntvBCuQDcLFmTQbDoaZndybebxOWorC8jRUZs2EL7i0MzCQ+7SzQUcPk/uueUxGDcV6gfc IvpmyoCttx71gMbqoaNhyfwjNKwAAowTbBv4FM1rMqY64ulWN7+AhfE8pX+kmDl8vbcdqnoE0 l0ausYSlX4fAU57h7xFORlbNA0AuwSdCVt1Gp1XGDKhNmUszirYETw3JzE0cSpg7oa0q6Uv4u 2+1SGGuJa09KxKPZY3K5HnAEVNaaNZqAovpplU2PPqe+psYpNOMaK5AxXqB1U8DjVWqCyBo1h CgHa6Y0ZUFlqdy9IasKHHrIxsDDv7f/ErFD27y3N9hkKXFaOSA0X6mGkQEivpTIpvgAlBurMo xbwSCFBOoL/Zq/MPT+c3gW4fVXb0R0tnS0mujG76tj/d2eQoUBJPePSbSnXKFEORtWakjYdd/ 8eReawJhv7aIWZ/OqOXFanhxjWoovNolBhwDZMosFQXo38wFwYVYHG0TIVO78H3MxlwJ12fhW mvs6yoOBl55+3REtZU8HE4e+Xr9U8j3NA5WOWYZvyhDl6Alafmi/PVane2XKrsA5rzuumlFpD 8KgpjtulMBqWRVBameyznX9YYkHYXymqJxZnJyK3Tz0QB8CAMfzz4q+FeZ02y04GFX9/xERDj LO+v3I05EiTMU6EJA9Pe2qjzfXgI1d4M6WgV/SN1e4EKpk850ndwev6SUm/0J5oKGZovt7L3B CNVZXtls6LLHYshs6zWA== Received-SPF: pass client-ip=212.227.15.3; envelope-from=alexanderm@web.de; helo=mout.web.de X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.4 (-) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.4 (--) In my config I have the following function that is used to prettify my mode-line (the actual version is pure and side-effect-free and inlined, but that does not seem to have any effect here): (defun f (n) =C2=A0 (pcase n =C2=A0=C2=A0=C2=A0 (1 " =E2=9E=8A") (2 " =E2=9E=8B") (3 " =E2=9E=8C") (4 = " =E2=9E=8D") (5 " =E2=9E=8E") (6 " =E2=9E=8F") =C2=A0=C2=A0=C2=A0 (7 " =E2=9E=90") (8 " =E2=9E=91") (9 " =E2=9E=92") (10= " =E2=9E=93") (_ ""))) When native compiled it appears to return raw bytes instead of the unicode symbols, for example I am seeing \342\236\212 instead of =E2=9E=8A= . I can circumvent that by using (1 (decode-coding-string " =E2=9E=8A" 'utf-= 8)), but of course that should not be necessary, since there's no such problem with the byte-compiled version. And on a probably unrelated note: is it normal for such a simple function to be compiled to 100 LOC of assembly? That seems surprisingly to my amateur eyes. In GNU Emacs 28.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.23, cairo version 1.17.3) of 2020-12-20 built on am-laptop Repository revision: ab985f41db5fdaeada513d28a065332fd8838cf4 Repository branch: makepkg Windowing system distributor 'The X.Org Foundation', version 11.0.12008000 System Description: Manjaro Linux Configured using: 'configure --prefix=3D/usr --sysconfdir=3D/etc --libexecdir=3D/usr/lib =2D-localstatedir=3D/var --mandir=3D/usr/share/man --with-gameuser=3D:game= s =2D-with-sound=3Dalsa --with-modules --without-gconf --without-gsettings =2D-with-nativecomp --with-x-toolkit=3Dgtk3 --without-xaw3d =2D-without-m17n-flt --with-cairo --without-compress-install 'CFLAGS=3D-march=3Dx86-64 -mtune=3Dgeneric -O2 -pipe -fno-plt -g -fuse-ld=3Dgold' CPPFLAGS=3D-D_FORTIFY_SOURCE=3D2 LDFLAGS=3D-Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now' Configured features: XPM JPEG TIFF GIF PNG RSVG CAIRO SOUND GPM DBUS GLIB NOTIFY INOTIFY ACL GNUTLS LIBXML2 FREETYPE HARFBUZZ LIBOTF ZLIB TOOLKIT_SCROLL_BARS GTK3 X11 XDBE XIM MODULES NATIVE_COMP THREADS LIBSYSTEMD JSON PDUMPER LCMS2 Important settings: value of $LC_MONETARY: de_DE.UTF-8 value of $LC_NUMERIC: de_DE.UTF-8 value of $LC_TIME: de_DE.UTF-8 value of $LANG: en_GB.utf8 locale-coding-system: utf-8 Major mode: ELisp/l Minor modes in effect: rainbow-delimiters-mode: t rainbow-mode: t display-line-numbers-mode: t hl-todo-mode: t org-super-agenda-mode: t treemacs-icons-dired-mode: t treemacs-filewatch-mode: t treemacs-follow-mode: t treemacs-git-mode: deferred treemacs-fringe-indicator-mode: t helm-mode: t helm--remap-mouse-mode: t async-bytecomp-package-mode: t gcmh-mode: t projectile-mode: t company-prescient-mode: t global-company-mode: t company-mode: t global-evil-vimish-fold-mode: t evil-vimish-fold-mode: t vimish-fold-mode: t show-smartparens-global-mode: t show-smartparens-mode: t smartparens-global-mode: t smartparens-mode: t framey-mode: t purpose-mode: t shackle-mode: t winum-mode: t eyebrowse-mode: t global-subword-mode: t subword-mode: t global-evil-surround-mode: t evil-surround-mode: t evil-lion-mode: t evil-goggles-mode: t shell-dirtrack-mode: t evil-mode: t evil-local-mode: t tooltip-mode: t global-eldoc-mode: t eldoc-mode: t electric-indent-mode: t mouse-wheel-mode: t tool-bar-mode: t prettify-symbols-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Load-path shadows: /usr/share/emacs/28.0.50/lisp/emacs-lisp/let-alist hides /home/am/.emacs.d/straight/build/let-alist/let-alist ~/Documents/git/treemacs/src/elisp/treemacs-interface hides /home/am/.emacs.d/straight/build/treemacs/treemacs-interface ~/Documents/git/treemacs/src/elisp/treemacs-rendering hides /home/am/.emacs.d/straight/build/treemacs/treemacs-rendering ~/Documents/git/treemacs/src/elisp/treemacs-dom hides /home/am/.emacs.d/straight/build/treemacs/treemacs-dom ~/Documents/git/treemacs/src/elisp/treemacs-tags hides /home/am/.emacs.d/straight/build/treemacs/treemacs-tags ~/Documents/git/treemacs/src/elisp/treemacs hides /home/am/.emacs.d/straight/build/treemacs/treemacs ~/Documents/git/treemacs/src/elisp/treemacs-workspaces hides /home/am/.emacs.d/straight/build/treemacs/treemacs-workspaces ~/Documents/git/treemacs/src/elisp/treemacs-customization hides /home/am/.emacs.d/straight/build/treemacs/treemacs-customization ~/Documents/git/treemacs/src/elisp/treemacs-faces hides /home/am/.emacs.d/straight/build/treemacs/treemacs-faces ~/Documents/git/treemacs/src/elisp/treemacs-themes hides /home/am/.emacs.d/straight/build/treemacs/treemacs-themes ~/Documents/git/treemacs/src/elisp/treemacs-mouse-interface hides /home/am/.emacs.d/straight/build/treemacs/treemacs-mouse-interface ~/Documents/git/treemacs/src/elisp/treemacs-mode hides /home/am/.emacs.d/straight/build/treemacs/treemacs-mode ~/Documents/git/treemacs/src/elisp/treemacs-icons hides /home/am/.emacs.d/straight/build/treemacs/treemacs-icons ~/Documents/git/treemacs/src/elisp/treemacs-compatibility hides /home/am/.emacs.d/straight/build/treemacs/treemacs-compatibility ~/Documents/git/treemacs/src/elisp/treemacs-follow-mode hides /home/am/.emacs.d/straight/build/treemacs/treemacs-follow-mode ~/Documents/git/treemacs/src/elisp/treemacs-visuals hides /home/am/.emacs.d/straight/build/treemacs/treemacs-visuals ~/Documents/git/treemacs/src/elisp/treemacs-core-utils hides /home/am/.emacs.d/straight/build/treemacs/treemacs-core-utils ~/Documents/git/treemacs/src/elisp/treemacs-extensions hides /home/am/.emacs.d/straight/build/treemacs/treemacs-extensions ~/Documents/git/treemacs/src/elisp/treemacs-filewatch-mode hides /home/am/.emacs.d/straight/build/treemacs/treemacs-filewatch-mode ~/Documents/git/treemacs/src/elisp/treemacs-persistence hides /home/am/.emacs.d/straight/build/treemacs/treemacs-persistence ~/Documents/git/treemacs/src/elisp/treemacs-async hides /home/am/.emacs.d/straight/build/treemacs/treemacs-async ~/Documents/git/treemacs/src/elisp/treemacs-bookmarks hides /home/am/.emacs.d/straight/build/treemacs/treemacs-bookmarks ~/Documents/git/treemacs/src/elisp/treemacs-tag-follow-mode hides /home/am/.emacs.d/straight/build/treemacs/treemacs-tag-follow-mode ~/Documents/git/treemacs/src/elisp/treemacs-logging hides /home/am/.emacs.d/straight/build/treemacs/treemacs-logging ~/Documents/git/treemacs/src/elisp/treemacs-header-line hides /home/am/.emacs.d/straight/build/treemacs/treemacs-header-line ~/Documents/git/treemacs/src/elisp/treemacs-fringe-indicator hides /home/am/.emacs.d/straight/build/treemacs/treemacs-fringe-indicator ~/Documents/git/treemacs/src/elisp/treemacs-diagnostics hides /home/am/.emacs.d/straight/build/treemacs/treemacs-diagnostics ~/Documents/git/treemacs/src/elisp/treemacs-macros hides /home/am/.emacs.d/straight/build/treemacs/treemacs-macros ~/Documents/git/treemacs/src/elisp/treemacs-scope hides /home/am/.emacs.d/straight/build/treemacs/treemacs-scope Features: (shadow sort ispell prose-complete mail-extr emacsbug winner face-remap helm-command helm-elisp helm-eval edebug backtrace helm-info info vc-mtn vc-hg vc-git diff-mode vc-bzr vc-src vc-sccs vc-svn vc-cvs vc-rcs vc vc-dispatcher rainbow-delimiters rainbow-mode xterm-color color display-line-numbers hl-todo pp view mu4e-alert time alert log4e notifications dbus xml gntp org-mu4e mu4e desktop frameset mu4e-org smartparens-org german-holidays org-super-agenda ts org-habit org-element avl-tree generator org-agenda org-refile org ob ob-tangle ob-ref ob-lob ob-table ob-exp org-macro org-footnote org-src ob-comint org-pcomplete org-list org-faces org-entities noutline outline org-version ob-emacs-lisp ob-core ob-eval org-table ol org-keys org-compat org-macs org-loaddefs find-func mu4e-main mu4e-view cal-menu calendar cal-loaddefs browse-url url url-proxy url-privacy url-expand url-methods url-history url-cookie url-domsuf url-util url-parse url-vars mailcap mu4e-headers mu4e-compose mu4e-context mu4e-draft mu4e-actions ido rfc2368 smtpmail sendmail mu4e-mark mu4e-message flow-fill mu4e-proc mu4e-utils doc-view jka-compr mu4e-lists mule-util mu4e-vars message rmc puny treemacs-icons-dired treemacs-projectile treemacs-evil treemacs treemacs-header-line treemacs-compatibility treemacs-mode treemacs-interface treemacs-extensions treemacs-persistence treemacs-mouse-interface treemacs-tag-follow-mode treemacs-filewatch-mode treemacs-tags imenu xref project treemacs-follow-mode treemacs-rendering treemacs-async treemacs-workspaces treemacs-dom treemacs-visuals treemacs-fringe-indicator treemacs-scope treemacs-faces treemacs-icons treemacs-themes treemacs-core-utils pfuture ace-window avy hl-line treemacs-logging treemacs-customization treemacs-macros dired+ image-dired image-mode exif image-file image-converter dired-x dired-aux dired dired-loaddefs rfc822 mml mml-sec epa derived epg epg-config gnus-util rmail rmail-loaddefs mm-decode mm-bodies mm-encode mail-parse rfc2231 rfc2047 rfc2045 mm-util ietf-drums mail-prsvr mailabbrev mail-utils gmm-utils mailheader mu4e-meta helm-mode helm-projectile helm-files filenotify docker-tramp tramp-cache tramp tramp-loaddefs trampver tramp-integration files-x tramp-compat parse-time iso8601 time-date ls-lisp auth-source password-cache json map helm-tags helm-buffers helm-occur helm-grep helm-regexp helm-utils helm-locate helm-help helm-types framey-helm helm-config helm async-bytecomp helm-global-bindings helm-source helm-multi-match helm-lib async gcmh projectile grep compile text-property-search ibuf-ext ibuffer ibuffer-loaddefs company-keywords company-dabbrev-code company-dabbrev company-yasnippet company-files company-capf company-prescient prescient company server evil-vimish-fold vimish-fold smartparens-config smartparens-text paren smartparens doom-modeline doom-modeline-segments doom-modeline-env doom-modeline-core shrink-path f all-the-icons all-the-icons-faces data-material data-weathericons data-octicons data-fileicons data-faicons data-alltheicons memoize framey inline ht s window-purpose window-purpose-fixes window-purpose-prefix-overload window-purpose-switch let-alist window-purpose-layout window-purpose-core window-purpose-configuration eieio-compat eieio window-purpose-utils shackle trace winum eyebrowse format-spec morning-star-theme cap-words superword subword evil-surround evil-lion evil-goggles pulse evil evil-keybindings evil-integration evil-maps evil-commands reveal evil-jumps evil-command-window evil-types evil-search evil-ex shell pcomplete comint ansi-color evil-macros evil-repeat evil-states evil-core comp comp-cstr warnings subr-x cl-seq cl-extra help-mode seq byte-opt bytecomp byte-compile cconv advice evil-common windmove thingatpt rect evil-digraphs evil-vars ring edmacro kmacro dash yequake-autoloads yasnippet-autoloads yaml-mode-autoloads xterm-color-autoloads wttrin-autoloads writeroom-mode-autoloads with-editor-autoloads winum-autoloads window-purpose-autoloads eieio-core cl-macs eieio-loaddefs cl-loaddefs cl-lib vterm-autoloads visual-fill-column-autoloads vimish-fold-autoloads ts-autoloads tridactylrc-mode-autoloads treepy-autoloads treemacs-autoloads transient-autoloads toml-mode-autoloads toc-org-autoloads tablist-autoloads straight-autoloads spinner-autoloads smartparens-autoloads shrink-path-autoloads shackle-autoloads s-autoloads rust-mode-autoloads restart-emacs-autoloads rainbow-mode-autoloads rainbow-delimiters-autoloads projectile-autoloads pretty-hydra-autoloads prescient-autoloads posframe-autoloads pos-tip-autoloads popup-autoloads pkg-info-autoloads pfuture-autoloads perspective-autoloads persp-mode-autoloads peep-dired-autoloads pdf-tools-autoloads pcre2el-autoloads package-lint-autoloads org-superstar-autoloads org-super-agenda-autoloads org-autoloads multi-compile-autoloads mu4e-alert-autoloads morning-star-autoloads memoize-autoloads markdown-mode-autoloads magit-todos-autoloads magit-autoloads macrostep-autoloads lv-autoloads lsp-ui-autoloads lsp-treemacs-autoloads lsp-mode-autoloads log4e-autoloads link-hint-autoloads let-alist-autoloads ledger-mode-autoloads json-snatcher-autoloads json-reformat-autoloads json-mode-autoloads rx imenu-list-autoloads i3wm-config-mode-autoloads hydra-autoloads ht-autoloads hl-todo-autoloads helpful-autoloads helm-projectile-autoloads helm-org-autoloads helm-easymenu easymenu helm-core-autoloads helm-ag-autoloads helm-autoloads goto-chg-autoloads gntp-autoloads git-modes-autoloads git-gutter-fringe-autoloads git-gutter-autoloads git-commit-autoloads ghub-autoloads german-holidays-autoloads gcmh-autoloads frog-menu-autoloads fringe-helper-autoloads framey-autoloads frame-local-autoloads forge-autoloads flyspell-correct-autoloads flycheck-pos-tip-autoloads flycheck-autoloads fish-mode-autoloads fill-column-indicator-autoloads f-autoloads eyebrowse-autoloads expand-region-autoloads evil-vimish-fold-autoloads evil-surround-autoloads evil-numbers-autoloads evil-nerd-commenter-autoloads evil-magit-autoloads evil-lion-autoloads evil-ledger-autoloads evil-goggles-autoloads evil-exchange-autoloads evil-collection-autoloads evil-autoloads eros-autoloads epl-autoloads epkg-autoloads emacsql-sqlite-autoloads emacsql-autoloads elisp-refs-autoloads elfeed-org-autoloads elfeed-autoloads doom-modeline-autoloads doct-autoloads dockerfile-mode-autoloads docker-tramp-autoloads docker-compose-mode-autoloads docker-autoloads dired+-autoloads dash-functional-autoloads dash-autoloads ctrlf-autoloads easy-mmode company-shell-autoloads company-quickhelp-autoloads company-prescient-autoloads company-box-autoloads company-autoloads closql-autoloads buttercup-autoloads avy-autoloads async-autoloads anzu-autoloads annalist-autoloads all-the-icons-autoloads alert-autoloads ace-window-autoloads gv iso-transl tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type mwheel term/x-win x-win term/common-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode elisp-mode lisp-mode prog-mode register page tab-bar menu-bar rfn-eshadow isearch timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core term/tty-colors frame minibuffer cl-generic cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese composite charscript charprop case-table epa-hook jka-cmpr-hook help simple abbrev obarray cl-preloaded nadvice button loaddefs faces cus-face pcase macroexp files window text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote threads dbusbind inotify lcms2 dynamic-setting font-render-setting cairo move-toolbar gtk x-toolkit x multi-tty make-network-process nativecomp emacs) Memory information: ((conses 16 522069 654871) (symbols 48 39178 0) (strings 32 130168 48392) (string-bytes 1 4717070) (vectors 16 60791) (vector-slots 8 888360 435946) (floats 8 754 2012) (intervals 56 1687 512) (buffers 984 18)) From debbugs-submit-bounces@debbugs.gnu.org Sun Dec 20 12:56:26 2020 Received: (at 45342) by debbugs.gnu.org; 20 Dec 2020 17:56:26 +0000 Received: from localhost ([127.0.0.1]:45558 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kr2wT-0004dK-SH for submit@debbugs.gnu.org; Sun, 20 Dec 2020 12:56:26 -0500 Received: from eggs.gnu.org ([209.51.188.92]:39282) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kr2wS-0004d8-Oi for 45342@debbugs.gnu.org; Sun, 20 Dec 2020 12:56:24 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]:50059) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kr2wN-00041I-6g; Sun, 20 Dec 2020 12:56:19 -0500 Received: from 84.94.185.95.cable.012.net.il ([84.94.185.95]:3881 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1kr2wM-0008AP-I6; Sun, 20 Dec 2020 12:56:18 -0500 Date: Sun, 20 Dec 2020 19:56:02 +0200 Message-Id: <83r1nks6od.fsf@gnu.org> From: Eli Zaretskii To: Alexander Miller In-Reply-To: (message from Alexander Miller on Sun, 20 Dec 2020 18:36:46 +0100) Subject: Re: bug#45342: 28.0.50; Native compiled function returns raw bytes, not string References: MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 45342 Cc: 45342@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > From: Alexander Miller > Date: Sun, 20 Dec 2020 18:36:46 +0100 > > In my config I have the following function that is used to prettify my > mode-line (the actual version is pure and side-effect-free and inlined, > but that does not seem to have any effect here): > > (defun f (n) >   (pcase n >     (1 " ➊") (2 " ➋") (3 " ➌") (4 " ➍") (5 " ➎") (6 " ➏") >     (7 " ➐") (8 " ➑") (9 " ➒") (10 " ➓") (_ ""))) > > When native compiled it appears to return raw bytes instead of the > unicode symbols, for example I am seeing \342\236\212 instead of ➊. \342\236\212 is the UTF-8 encoding of ➊. Which probably means the native-compiled function returns a unibyte string instead of a multibyte string, for some reason. From debbugs-submit-bounces@debbugs.gnu.org Sun Dec 20 15:24:34 2020 Received: (at 45342) by debbugs.gnu.org; 20 Dec 2020 20:24:34 +0000 Received: from localhost ([127.0.0.1]:45680 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kr5Fq-0003xl-9M for submit@debbugs.gnu.org; Sun, 20 Dec 2020 15:24:34 -0500 Received: from mab.sdf.org ([205.166.94.33]:58192 helo=ma.sdf.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kr5Fn-0003xc-Rx for 45342@debbugs.gnu.org; Sun, 20 Dec 2020 15:24:32 -0500 Received: from akrl by ma.sdf.org with local (Exim 4.92) (envelope-from ) id 1kr5Fm-00019I-9c; Sun, 20 Dec 2020 20:24:30 +0000 From: Andrea Corallo To: Alexander Miller Subject: Re: bug#45342: 28.0.50; Native compiled function returns raw bytes, not string References: Date: Sun, 20 Dec 2020 20:24:30 +0000 In-Reply-To: (Alexander Miller's message of "Sun, 20 Dec 2020 18:36:46 +0100") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 45342 Cc: 45342@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Alexander Miller writes: > In my config I have the following function that is used to prettify my > mode-line (the actual version is pure and side-effect-free and inlined, > but that does not seem to have any effect here): > > (defun f (n) > =C2=A0 (pcase n > =C2=A0=C2=A0=C2=A0 (1 " =E2=9E=8A") (2 " =E2=9E=8B") (3 " =E2=9E=8C") (4 = " =E2=9E=8D") (5 " =E2=9E=8E") (6 " =E2=9E=8F") > =C2=A0=C2=A0=C2=A0 (7 " =E2=9E=90") (8 " =E2=9E=91") (9 " =E2=9E=92") (10= " =E2=9E=93") (_ ""))) > > When native compiled it appears to return raw bytes instead of the > unicode symbols, for example I am seeing \342\236\212 instead of =E2=9E= =8A. > > I can circumvent that by using (1 (decode-coding-string " =E2=9E=8A" 'utf= -8)), > but of course that should not be necessary, since there's no such > problem with the byte-compiled version. Hi Alexander, 72c1a41573 fix this for me, would you like to confirm? > And on a probably unrelated note: is it normal for such a simple > function to be compiled to 100 LOC of assembly? That seems surprisingly > to my amateur eyes. Yes, big switch cases is ATM a case we do not generate optimal code for. Thanks for the report! Andrea From debbugs-submit-bounces@debbugs.gnu.org Mon Dec 21 08:39:43 2020 Received: (at 45342) by debbugs.gnu.org; 21 Dec 2020 13:39:43 +0000 Received: from localhost ([127.0.0.1]:46525 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1krLPV-0006JE-Jj for submit@debbugs.gnu.org; Mon, 21 Dec 2020 08:39:43 -0500 Received: from mout.web.de ([212.227.15.14]:57061) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1krLPO-0006IM-Nx for 45342@debbugs.gnu.org; Mon, 21 Dec 2020 08:39:36 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=web.de; s=dbaedf251592; t=1608557963; bh=KUoJRAWg+cng6MpCK1KgZD7AvEno1WDuejTy3gcr9AM=; h=X-UI-Sender-Class:To:Cc:Subject:From:Date; b=WuXgletp+KX44zrBogbk+L4uJMZfJ3qK+C1f4wAvh65Ty68L6Xw8mKvRDqiDb5+uq zYRusD92rM6avKYGqjPifu5J1lK2fqILA4WfNMcTvGBfukjrJSCSLm1ldOxUZLDQWb wKWsoXmX5oxrx7f64E980PzAe9R4IDIvuhTUoJQU= X-UI-Sender-Class: c548c8c5-30a9-4db5-a2e7-cb6cb037b8f9 Received: from [192.168.2.104] ([217.241.90.99]) by smtp.web.de (mrweb003 [213.165.67.108]) with ESMTPSA (Nemesis) id 0MhUcU-1kemdd0vA2-00Mfcw; Mon, 21 Dec 2020 14:39:23 +0100 To: akrl@sdf.org Subject: Re: bug#45342: 28.0.50; Native compiled function returns raw bytes, not string From: Alexander Miller Message-ID: <830eaec4-a2f7-c3cf-14f2-e0a3574a1e8b@web.de> Date: Mon, 21 Dec 2020 14:45:04 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.6.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: base64 Content-Language: en-US X-Provags-ID: V03:K1:nXYv6Tgulgp5ABbZOL+crXkQxl1aTeATdZVl1KeNgEv8pbQNlnc BKLx9980GqFXutpy4IyMSKLY3XZepkaZES6dCAdmY07wWqwrqTO39Agsd2veUrXNJ3w18hd vsD1dWNDARVDVktPVQgpmWvKO1AD4xhyHi1scN+VX+bvjbohz18DqoMYE3ZavMOPvGvo7ka f64tTsFzwNZnNj7qSwzkQ== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:soRJ4jJbF44=:lwjxjtAYVbZKKW3FZSg/C4 89IkiWKLhZgdh5qO7kTLQYFmNWFSW6DZ7KdWCmqd09DnadzcRV7dnLudYAful7PcKR8ng8PID 1VOJBYltOa0ytw2gJhv8zRsRVlIP6IXTSpcKRkRWeg4iaRe4wJgHJdIe2fj/1TqXDBUjuoKa9 ylwGs4Cqf4HfPaLBkRqgMLxW5acKEhH7lGRlmQvPu2i060oql7aXAJY0c4xBjP9inAZ6pELqL 3rTP/ynD3bIaYcPVkfsnFZUhorCN4EM757/BBf1rZOZ82R5Yd55k/M30oIKkFYuZj+aneBBqF PfAtJuQOGFrNMWl2ajDu5TTwOqkZ2iwJNsbYfr+ojVu5s+10Eaw24haOYeDgTRN4g0p4tiSmN 3jXDe7j8ZxfMEqEVTz/s79ETNDjymVeCzZ/9e6vNtrcUGYRXPgO2L2xaWn+lXIAqOYr/7fSV6 UVt8J1CdjFlqZ/gatQpRXoDmXu7nQv7/s4mhNSVMSaD5/tPoi0up50k+rpa1f0pFTOQQQFP0t lMURfJRkY7Ej/Ps2w+dzLaVWL02DrMwAyB5QOMdfIBLVzVsXE9sYgZFdrbd4w+2ykzW6T1BAS Fo3jit5mAjv68zE8C15HPGOZyxa+QowpZ2SrL25eCBgqovWTPXfgMEy0IWc+EzY6XA5DrlyN+ h6SR8VVKAMJ84wu6H+QM7uHe3ZavYFds/4chwyFkAXqw6xCvO0orqQFJgRe06cBGr6YgNvmTj bbwvNpCuBDI8pWAd7bG6hfjVqmA6MThm9nCsesQOhQZ/snp8ZaslDU+PaRObLLLGnn6DypIpt Qxg9ExYmJ7O9ciQxDL0d1p/LFxoYHvcwO4YbIZAtAGR9MsSXc3JG0tfqGwLdo7XyLdRzvvSB7 BX5fmFmpZ/rQNOEnwdsg== X-Spam-Score: 2.7 (++) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: Hi Andrea, I can confirm that 72c1a41573 fixes the issue. However there's still another problem that I thought was related, but apparently it isn't. (I can open another bug for it if you like). Content analysis details: (2.7 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.0 SPF_PASS SPF: sender matches SPF record 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (alexanderm[at]web.de) -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at https://www.dnswl.org/, low trust [212.227.15.14 listed in list.dnswl.org] -0.0 RCVD_IN_MSPIKE_H2 RBL: Average reputation (+2) [212.227.15.14 listed in wl.mailspike.net] 3.4 FAKE_REPLY_A1 No description available. X-Debbugs-Envelope-To: 45342 Cc: 45342@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 1.7 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: Hi Andrea, I can confirm that 72c1a41573 fixes the issue. However there's still another problem that I thought was related, but apparently it isn't. (I can open another bug for it if you like). Content analysis details: (1.7 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_MSPIKE_H2 RBL: Average reputation (+2) [212.227.15.14 listed in wl.mailspike.net] -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at https://www.dnswl.org/, low trust [212.227.15.14 listed in list.dnswl.org] 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.0 SPF_PASS SPF: sender matches SPF record 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (alexanderm[at]web.de) -1.0 MAILING_LIST_MULTI Multiple indicators imply a widely-seen list manager 3.4 FAKE_REPLY_A1 No description available. SGkgQW5kcmVhLA0KDQpJIGNhbiBjb25maXJtIHRoYXQgNzJjMWE0MTU3MyBmaXhlcyB0aGUgaXNz dWUuDQoNCkhvd2V2ZXIgdGhlcmUncyBzdGlsbCBhbm90aGVyIHByb2JsZW0gdGhhdCBJIHRob3Vn aHQgd2FzIHJlbGF0ZWQsIGJ1dA0KYXBwYXJlbnRseSBpdCBpc24ndC4gKEkgY2FuIG9wZW4gYW5v dGhlciBidWcgZm9yIGl0IGlmIHlvdSBsaWtlKS4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5cIiwNClwiLi4uLi5cIiwNClwiLi4uLi5cIiwNClwiLi4uLi5cIiwNClwi Li4uLi5cIiwNClwiLi4uLi5cIiwNClwiLi4uLi5cIiwNClwiLi4uLi5cIiwNClwiLi4uLi5cIiwN ClwiLi4uLi5cIiwNClwiLi4uLi5cIiwNClwiLi4uLi5cIiwNClwiLi4uLi5cIiwNClwiLi4uLi5c IiwNClwiLi4uLi5cIiwNClwiLi4uLi5cIiwNClwiLi4uLi5cIiwNClwiLi4uLi5cIn07IiA6c2Nh bGUgMSA6YXNjZW50IGNlbnRlcikpKQ0KDQo= From debbugs-submit-bounces@debbugs.gnu.org Mon Dec 21 10:34:10 2020 Received: (at 45342-done) by debbugs.gnu.org; 21 Dec 2020 15:34:10 +0000 Received: from localhost ([127.0.0.1]:48027 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1krNCM-0004aN-1o for submit@debbugs.gnu.org; Mon, 21 Dec 2020 10:34:10 -0500 Received: from mab.sdf.org ([205.166.94.33]:39826 helo=ma.sdf.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1krNCJ-0004aE-MY for 45342-done@debbugs.gnu.org; Mon, 21 Dec 2020 10:34:08 -0500 Received: from akrl by ma.sdf.org with local (Exim 4.92) (envelope-from ) id 1krNCH-0006sk-S4; Mon, 21 Dec 2020 15:34:05 +0000 From: Andrea Corallo To: Alexander Miller Subject: Re: bug#45342: 28.0.50; Native compiled function returns raw bytes, not string References: <830eaec4-a2f7-c3cf-14f2-e0a3574a1e8b@web.de> Date: Mon, 21 Dec 2020 15:34:05 +0000 In-Reply-To: <830eaec4-a2f7-c3cf-14f2-e0a3574a1e8b@web.de> (Alexander Miller's message of "Mon, 21 Dec 2020 14:45:04 +0100") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 45342-done Cc: 45342-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Alexander Miller writes: > Hi Andrea, > > I can confirm that 72c1a41573 fixes the issue. > > However there's still another problem that I thought was related, but > apparently it isn't. (I can open another bug for it if you like). > > It looks like eval-when-compile is not working as expected. I am also > using small xpms for my modeline that are defined like this: Hi Alex, I tried reproducing but I get nil both executing interpreted byte-compiled and native-compiled, so probably I'm not doing exactly what you do. Could you open a dedicated bug attaching the full reproducer and how you exercise it? I'm closing this one. Thanks! Andrea From debbugs-submit-bounces@debbugs.gnu.org Mon Dec 21 14:31:17 2020 Received: (at 45342) by debbugs.gnu.org; 21 Dec 2020 19:31:17 +0000 Received: from localhost ([127.0.0.1]:48328 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1krQto-0002S8-R1 for submit@debbugs.gnu.org; Mon, 21 Dec 2020 14:31:17 -0500 Received: from mout.web.de ([212.227.15.3]:44809) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1krQtj-0002Rq-JH for 45342@debbugs.gnu.org; Mon, 21 Dec 2020 14:31:15 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=web.de; s=dbaedf251592; t=1608579065; bh=xV8oLjt4gqe9S4wPHQ8oTklatqlOzJZKDs96nmDWH+Q=; h=X-UI-Sender-Class:To:Subject:From:Date; b=S7A7s6muFE86MaVEfvtAK8qAKRzhmnKeDG3a0XEqezFBHpaY/mxj9ccZ73uQZyO67 7T7mmqX5lBR6ZZHM5cn4UNkPYkrOAAxYrbjLjGu6UdlmTRdkQALUp9fwOUFZr/SgRT +bISIxPH0dT8eX/tl3vG3BrK77i1tDJGv8oFOL5g= X-UI-Sender-Class: c548c8c5-30a9-4db5-a2e7-cb6cb037b8f9 Received: from [192.168.2.104] ([217.241.90.99]) by smtp.web.de (mrweb006 [213.165.67.108]) with ESMTPSA (Nemesis) id 1N7xaR-1jwncp3sLT-014jsv for <45342@debbugs.gnu.org>; Mon, 21 Dec 2020 20:31:04 +0100 To: 45342@debbugs.gnu.org Subject: Re: bug#45342: closed (Re: bug#45342: 28.0.50; Native compiled function returns raw bytes, not string) From: Alexander Miller Message-ID: <02fe761d-a804-90a1-7d51-9cde59e1ef61@web.de> Date: Mon, 21 Dec 2020 20:36:47 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.6.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US X-Provags-ID: V03:K1:UDdtqJkh+bzsl0+RcuanOgvtcyflv6ylgL9i1nqtlXQJ+BIer33 WuOPXl/hf3dPMR8mSB3I1vH47zCIhIraW6oBsttk0iI3Ti+3MopTlVVxpwOvGEfdjPOGfcc T7jCYFoO569glSoYdyWT4/HuV8oDdcEXUZQSneGsTkYuMm0DranrxiXkBr2P1+7kCWCals9 bep6kxzW0U8+3vn129C7w== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:Fi0NEL0xeL8=:cGo26Rhgt9V5k70FZsItJa Vm6OXP+SPG8PNw7z3mtwDXLNYKTp5+Uo0UbNbp71o//hlOw3aLr6f49FxG2ZuTUYl9KXSwoMF Ia4JG3fSIMFrns0ut3AIgyPNGLkSBh9lzOpjKJ4fYLxO2YWOj+UsInSlddA7isWyzHcm7ZeTU LjqK8+UxEk2SCtnMMjUmVexCuD6d4ZVeu5xqQO3XX0Ss1/GqWMaq/ijoGj681t+5GPmOEPqmV wQTXfisPzZPohpBS69N3fQKyzk5AvbPCMZFWuADOWDc1Ywg3DYrwKg38UiTh4m8FokEvYV4F+ UpbwfEgQPJgiSGqmEdlwVbzX9osDHxrHT470P2dv4EEG8BNr0ldgAFqxdZEanem4HYtaRYhXC 4cN5pajVV6qeEbZ147FLb1pNpsYYziObQAG0XNsTNt3WBMB1itf0vmW7f4M2Mh1VtIWNbSthT cjN4uged1r88Bh/ROq1oFAPM+KgtaxbuAA29npu7GeAa5U7iDr9qhjgW7TVYbwN7lq2Cirx8p HmIFJQvfwBzo5O8mk3Z5F1+3SBFOzDa41YvrxsGPEf5e9J4A75W4nndMcH93lh1ZN+h984nIT OPdsez199c/Gv6f2zN1w6dyatxAQ4JzvVbSkdPhx4u5H44/4yakfTTHciMoJ3mt5w9Tj1jR1z pri6aiRyotWXo0S8p3/MOwFJ3u2CdfN4jXzGlJqSJoDGTDkTaN2la+fMWK7URXr+isVawrFp8 uzv0hNxSPNmN0ZoDqW73ON7bDfLRNfbuH8IY1LLUQqkVVicUXEG8Ehzkr8Tt2ULxA+0Al1IxI /ZBnQip9jSo+/DUQLGG5CyaU2+0MYm6yMaOUXFMwCZlSrGArVIyC6RnJ5Y1CgMx3PlhuC31xr 7gUPBE5kkYUmqit5lP7A== X-Spam-Score: 2.7 (++) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: Hi Andrea, never mind about the second thing, the function is guarded by a (and (display-graphic-p) (image-type-available-p 'xpm)) check. I compile my config in a batch script, so getting nil here is the correct [...] Content analysis details: (2.7 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.0 SPF_PASS SPF: sender matches SPF record 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (alexanderm[at]web.de) -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at https://www.dnswl.org/, low trust [212.227.15.3 listed in list.dnswl.org] 0.0 RCVD_IN_MSPIKE_H3 RBL: Good reputation (+3) [212.227.15.3 listed in wl.mailspike.net] 0.0 RCVD_IN_MSPIKE_WL Mailspike good senders 3.4 FAKE_REPLY_A1 No description available. X-Debbugs-Envelope-To: 45342 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 1.7 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: Hi Andrea, never mind about the second thing, the function is guarded by a (and (display-graphic-p) (image-type-available-p 'xpm)) check. I compile my config in a batch script, so getting nil here is the correct [...] Content analysis details: (1.7 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 RCVD_IN_MSPIKE_H3 RBL: Good reputation (+3) [212.227.15.3 listed in wl.mailspike.net] -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at https://www.dnswl.org/, low trust [212.227.15.3 listed in list.dnswl.org] 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.0 SPF_PASS SPF: sender matches SPF record 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (alexanderm[at]web.de) 0.0 RCVD_IN_MSPIKE_WL Mailspike good senders -1.0 MAILING_LIST_MULTI Multiple indicators imply a widely-seen list manager 3.4 FAKE_REPLY_A1 No description available. Hi Andrea, never mind about the second thing, the function is guarded by a (and (display-graphic-p) (image-type-available-p 'xpm)) check. I compile my config in a batch script, so getting nil here is the correct behaviour. That does open up the question why it does work with byte-compilation, but that's probably not a bug, just something I need to figure out. From debbugs-submit-bounces@debbugs.gnu.org Mon Dec 21 15:01:25 2020 Received: (at 45342) by debbugs.gnu.org; 21 Dec 2020 20:01:25 +0000 Received: from localhost ([127.0.0.1]:48338 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1krRMz-00039h-9x for submit@debbugs.gnu.org; Mon, 21 Dec 2020 15:01:25 -0500 Received: from mab.sdf.org ([205.166.94.33]:46952 helo=ma.sdf.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1krRMv-00039V-QJ for 45342@debbugs.gnu.org; Mon, 21 Dec 2020 15:01:24 -0500 Received: from akrl by ma.sdf.org with local (Exim 4.92) (envelope-from ) id 1krRMs-00073U-TN; Mon, 21 Dec 2020 20:01:18 +0000 From: Andrea Corallo To: Alexander Miller Subject: Re: bug#45342: closed (Re: bug#45342: 28.0.50; Native compiled function returns raw bytes, not string) References: <02fe761d-a804-90a1-7d51-9cde59e1ef61@web.de> Date: Mon, 21 Dec 2020 20:01:18 +0000 In-Reply-To: <02fe761d-a804-90a1-7d51-9cde59e1ef61@web.de> (Alexander Miller's message of "Mon, 21 Dec 2020 20:36:47 +0100") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 45342 Cc: 45342@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Alexander Miller writes: > Hi Andrea, > > never mind about the second thing, the function is guarded by a > (and (display-graphic-p) (image-type-available-p 'xpm)) check. I compile > my config in a batch script, so getting nil here is the correct > behaviour. > That does open up the question why it does work with byte-compilation, > but that's probably not a bug, just something I need to figure out. Hi Alexander, okay, you know where to complain in case :) Andrea From unknown Sat Sep 13 02:39:33 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Tue, 19 Jan 2021 12:24:05 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator