From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Jean-Christophe Helary Newsgroups: gmane.emacs.bugs Subject: bug#35355: 27.0.50; ps-print-buffer-with-faces does not print non-ascii Date: Sun, 21 Apr 2019 18:02:38 +0900 Message-ID: Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.8\)) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="156182"; mail-complaints-to="usenet@blaine.gmane.org" To: 35355@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Apr 21 11:03:22 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hI8Nc-000eTs-Uj for geb-bug-gnu-emacs@m.gmane.org; Sun, 21 Apr 2019 11:03:21 +0200 Original-Received: from localhost ([127.0.0.1]:50690 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hI8Nc-0001eN-0E for geb-bug-gnu-emacs@m.gmane.org; Sun, 21 Apr 2019 05:03:20 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:48668) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hI8NN-0001d6-KC for bug-gnu-emacs@gnu.org; Sun, 21 Apr 2019 05:03:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hI8NL-0001oY-NH for bug-gnu-emacs@gnu.org; Sun, 21 Apr 2019 05:03:05 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:34104) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hI8NK-0001oD-On for bug-gnu-emacs@gnu.org; Sun, 21 Apr 2019 05:03:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hI8NK-00085D-JO for bug-gnu-emacs@gnu.org; Sun, 21 Apr 2019 05:03:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Jean-Christophe Helary Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 21 Apr 2019 09:03:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 35355 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.155583738031062 (code B ref -1); Sun, 21 Apr 2019 09:03:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 21 Apr 2019 09:03:00 +0000 Original-Received: from localhost ([127.0.0.1]:47648 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hI8NI-00084v-36 for submit@debbugs.gnu.org; Sun, 21 Apr 2019 05:03:00 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:34226) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hI8NG-00084g-3v for submit@debbugs.gnu.org; Sun, 21 Apr 2019 05:02:58 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:34389) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hI8NB-0001hc-0G for submit@debbugs.gnu.org; Sun, 21 Apr 2019 05:02:53 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:48598) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hI8N9-0001Uc-BP for bug-gnu-emacs@gnu.org; Sun, 21 Apr 2019 05:02:52 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hI8N4-0001a7-V1 for bug-gnu-emacs@gnu.org; Sun, 21 Apr 2019 05:02:50 -0400 Original-Received: from mail-pl1-x643.google.com ([2607:f8b0:4864:20::643]:33815) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hI8N2-0001SV-O4; Sun, 21 Apr 2019 05:02:45 -0400 Original-Received: by mail-pl1-x643.google.com with SMTP id y6so4478055plt.1; Sun, 21 Apr 2019 02:02:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:content-transfer-encoding:mime-version:subject:message-id:date :cc:to; bh=3Air9KeCw99M8ls/3WcA3aRuiHhOpXItYS+wVWn3Wog=; b=KqSVKmUveWc8zj0OxPBQOXq1jn2j6AlGYVAAic3safiloRRRCu7JuyeyPYM625oBNk uv5r9Qn7RN8GzWTyZNNoBoH0O3a4pvp9x1wDb7PAZNJ4GAZ6V9J3kXnBsPjxyhwZSQPA 1+fIB5nWj8cxP27iSsjnVM5yZyXdb27sGoaiIYR5sI2tAnK6q+3R7CoIMk6DBr9qekK0 iKn60KYWGO27OtxQcU6/cvIUNNvwIquc0FWYx0uNZPPMTKExJus49uJ1288TZs9yYAL+ 0maNbxdgVzlpoppwbIk3rl6XKCEHnxpxfBFtV3nsgKEQG6j3txxC/Kbf/5xXXcEmF27m QKiw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:content-transfer-encoding:mime-version :subject:message-id:date:cc:to; bh=3Air9KeCw99M8ls/3WcA3aRuiHhOpXItYS+wVWn3Wog=; b=ScShLQSj17cYJEYrVlkC1Yhr5Ii3SG811nU2wLAVG3Wpl8cVCVO6RWChwwiJwN+zN3 BScjfZyZ9rlGyPGv6vgClc9SeSTpv8HXPC5FC6MmYexrqr/J4L7DLtWjIaRcOSV3P0HD F3NW76eJ7pv6VfgdkXBnYn7T0ww3yUMFQa+CNtn+8Z9zBYJ8GR3uKdOWfUlGznhyIFE+ zZ94nXr7MjxvvZ1x2TgOMdaYLrmcnrOpC1vqxiRhI9BjBLrQfI4ea9xJ0kR39Du+b9N1 8Jz6P+GZcXKgi5F+XqdtQQhG7KMOnlgIQVbQL245VOXXcdHkl6eCyAou6GBQICGKrtvp Z8GQ== X-Gm-Message-State: APjAAAX2MbZxosUIhAsABImROUIhPuOs/F5JjDRJ40H+9Nosoq3nvGjR L4+dcueOROIH4Iubxo2JYtUGGbOr X-Google-Smtp-Source: APXvYqwR7LxvTTt9yhzwIKD6NG1bFUCDhXp0XxhxZkrWbinOPBQ7CsFXJgpRnSvFJ2F7xkVuiG3VPA== X-Received: by 2002:a17:902:8c85:: with SMTP id t5mr4560779plo.23.1555837361561; Sun, 21 Apr 2019 02:02:41 -0700 (PDT) Original-Received: from [192.168.1.3] (pl32040.ag0304.nttpc.ne.jp. [111.89.228.40]) by smtp.gmail.com with ESMTPSA id 25sm16415211pfo.145.2019.04.21.02.02.39 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 21 Apr 2019 02:02:40 -0700 (PDT) X-Mailer: Apple Mail (2.3445.104.8) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. 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: 209.51.188.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:157932 Archived-At: I tried to print a simple C buffer with some Japanese characters in = commentsand the default printout was in b/w, but all the Japanese = characters were printed out nicely. Then, I tried the ps-print-buffer-with-faces command and the syntax = highlighting worked fine but all the Japanese characters were replaced = by ???. Then, after reading the documentation a bit, I tried to (setq ps=E2=88=92multibyte=E2=88=92buffer =E2=80=99non=E2=88=92latin=E2=88= =92printer) but now the Japanese characters are totally mojibaked: // $*$_$/$8$NFbMF0lMw so I tried 'bfd-fonts and I got a weird message about having no font for ascii, and with 'bfd-fonts-except-latin, I'm back to ???. I tried the same with an elisp file and the result was the same. A minor issue is that the first line of the header for the ps file seems truncated. Only the path and the date are printed. In GNU Emacs 27.0.50 (build 2, x86_64-apple-darwin18.5.0, NS = appkit-1671.40 Version 10.14.4 (Build 18E226)) of 2019-04-16 built on mabinogion.local Repository revision: debaa72dd89eee0dffc930a7ccff742ca5a81d88 Repository branch: master Windowing system distributor 'Apple', version 10.3.1671 System Description: Mac OS X 10.14.4 Formatting... 0% Collecting face information... Formatting...done Saving... Wrote /Users/suzume/Desktop/test.ps [2 times] Quit Configured using: 'configure LDFLAGS=3D-L/usr/local/opt/texinfo/lib PKG_CONFIG_PATH=3D/usr/local/Cellar/pkg-config' Configured features: DBUS NOTIFY KQUEUE ACL GNUTLS LIBXML2 ZLIB TOOLKIT_SCROLL_BARS XIM NS THREADS JSON PDUMPER LCMS2 GMP Important settings: value of $LANG: en_JP.UTF-8 locale-coding-system: utf-8 Major mode: Emacs-Lisp Minor modes in effect: global-display-line-numbers-mode: t display-line-numbers-mode: t whitespace-mode: t flyspell-mode: t rainbow-delimiters-mode: t electric-pair-mode: t global-color-identifiers-mode: t color-identifiers-mode: t global-git-gutter+-mode: t global-git-commit-mode: t async-bytecomp-package-mode: t shell-dirtrack-mode: t ivy-mode: t global-company-mode: t company-mode: t projectile-mode: t recentf-mode: t server-mode: t icomplete-mode: t delete-selection-mode: t savehist-mode: t desktop-save-mode: t tooltip-mode: t global-eldoc-mode: t eldoc-mode: t electric-indent-mode: t mouse-wheel-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 size-indication-mode: t line-number-mode: t global-visual-line-mode: 1 transient-mark-mode: t Load-path shadows: /Users/suzume/.emacs.d/elpa/svg-0.2/svg hides = /Users/suzume/Documents/Code/emacs/nextstep/Emacs.app/Contents/Resources/l= isp/svg Features: (shadow mail-extr emacsbug sendmail ps-mule ps-print ps-print-loaddefs ps-def lpr reporter display-line-numbers sort whitespace osx-dictionary mm-archive misearch multi-isearch gnutls network-stream url-http url-gw nsm url-cache url-auth finder-inf smex ido helpful trace edebug backtrace info-look shut-up f dash-functional help-fns radix-tree elisp-refs s loop tabify org-datetree org-capture texinfo autorevert filenotify vc-dispatcher vc-svn add-node-modules-path vc-git diff-mode mhtml-mode js2-mode css-mode eww mm-url gnus nnheader url-queue url url-proxy url-privacy url-expand url-methods url-history url-cookie url-domsuf url-util mailcap shr svg xml browse-url js cc-mode cc-fonts cc-guess cc-menus cc-cmds cc-styles cc-align cc-engine cc-vars cc-defs sgml-mode dom writeroom-mode visual-fill-column org-indent org-element avl-tree org org-macro org-footnote org-pcomplete org-list org-faces org-entities noutline outline org-version ob-emacs-lisp ob ob-tangle org-src ob-ref ob-lob ob-table ob-keys ob-exp ob-comint ob-core ob-eval org-compat org-macs org-loaddefs cal-menu calendar cal-loaddefs flyspell ispell rainbow-delimiters elec-pair persistent-soft list-utils pcache eieio-compat eieio-base font-utils color-identifiers-mode python tramp-sh rubocop rinari jump inflections findr ruby-compilation which-func imenu inf-ruby ruby-mode smie git-gutter+ git-commit with-editor magit-git magit-section magit-utils magit-popup async-bytecomp async crm log-edit easy-mmode message rmc puny dired dired-loaddefs rfc822 mml mml-sec epa derived epg gnus-util rmail rmail-loaddefs text-property-search time-date mm-decode mm-bodies mm-encode mail-parse rfc2231 rfc2047 rfc2045 mm-util ietf-drums mail-prsvr mailabbrev mail-utils gmm-utils mailheader pcvs-util add-log tramp tramp-loaddefs trampver tramp-integration files-x tramp-compat shell pcomplete parse-time flycheck cl-extra find-func help-mode rx dash ivy colir color ivy-overlay ffap company-oddmuse company-keywords company-etags etags fileloop generator xref project company-gtags company-dabbrev-code company-dabbrev company-files company-capf company-cmake company-xcode company-clang company-semantic company-eclim company-template company-bbdb company pcase projectile grep ibuf-ext ibuffer ibuffer-loaddefs thingatpt web-mode disp-table pdf-tools compile comint ansi-color ring cus-edit cus-start cus-load pdf-view bookmark pp jka-compr pdf-cache pdf-info tq pdf-util advice format-spec image-mode ls-lisp recentf tree-widget wid-edit server exec-path-from-shell icomplete unicode-fonts delsel savehist desktop frameset edmacro kmacro cl info package easymenu epg-config url-handlers url-parse auth-source cl-seq eieio eieio-core cl-macs eieio-loaddefs password-cache json subr-x map url-vars seq byte-opt gv bytecomp byte-compile cconv cl-loaddefs cl-lib tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type mwheel term/ns-win ns-win ucs-normalize mule-util term/common-win tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode elisp-mode lisp-mode prog-mode register page menu-bar rfn-eshadow isearch timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core term/tty-colors frame 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 minibuffer cl-preloaded nadvice loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote threads dbusbind kqueue cocoa ns lcms2 multi-tty make-network-process emacs) Memory information: ((conses 16 1633272 170441) (symbols 48 43284 3) (strings 32 246856 85216) (string-bytes 1 6574376) (vectors 16 79760) (vector-slots 8 1698327 143454) (floats 8 677 262) (intervals 56 184703 1323) (buffers 992 58)) Jean-Christophe Helary ----------------------------------------------- http://mac4translators.blogspot.com @brandelune