From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: ivan Newsgroups: gmane.emacs.bugs Subject: bug#24637: 25.1; non-ascii chars fail to render in Info buffer Date: Fri, 7 Oct 2016 08:13:37 -0400 Message-ID: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=94eb2c19213e1700aa053e4557a6 X-Trace: blaine.gmane.org 1475843240 24828 195.159.176.226 (7 Oct 2016 12:27:20 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 7 Oct 2016 12:27:20 +0000 (UTC) To: 24637@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Oct 07 14:27:16 2016 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 1bsUF9-0005rA-Nn for geb-bug-gnu-emacs@m.gmane.org; Fri, 07 Oct 2016 14:27:15 +0200 Original-Received: from localhost ([::1]:34572 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bsUF8-0006Pa-9k for geb-bug-gnu-emacs@m.gmane.org; Fri, 07 Oct 2016 08:27:14 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:43246) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bsU2S-0004QN-6A for bug-gnu-emacs@gnu.org; Fri, 07 Oct 2016 08:14:09 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bsU2O-0000XT-9V for bug-gnu-emacs@gnu.org; Fri, 07 Oct 2016 08:14:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:41180) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bsU2O-0000WH-6e for bug-gnu-emacs@gnu.org; Fri, 07 Oct 2016 08:14:04 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1bsU2L-0008BM-Po for bug-gnu-emacs@gnu.org; Fri, 07 Oct 2016 08:14:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: ivan Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 07 Oct 2016 12:14:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 24637 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.147584243431425 (code B ref -1); Fri, 07 Oct 2016 12:14:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 7 Oct 2016 12:13:54 +0000 Original-Received: from localhost ([127.0.0.1]:47370 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bsU2D-0008An-Pi for submit@debbugs.gnu.org; Fri, 07 Oct 2016 08:13:54 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:52170) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bsU2B-0008AZ-Ck for submit@debbugs.gnu.org; Fri, 07 Oct 2016 08:13:51 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bsU24-0000Oi-3Z for submit@debbugs.gnu.org; Fri, 07 Oct 2016 08:13:45 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:57880) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bsU24-0000OB-0a for submit@debbugs.gnu.org; Fri, 07 Oct 2016 08:13:44 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:43110) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bsU21-00043s-89 for bug-gnu-emacs@gnu.org; Fri, 07 Oct 2016 08:13:42 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bsU1z-0000MK-Nb for bug-gnu-emacs@gnu.org; Fri, 07 Oct 2016 08:13:41 -0400 Original-Received: from mail-oi0-x233.google.com ([2607:f8b0:4003:c06::233]:33028) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bsU1z-0000L6-H6 for bug-gnu-emacs@gnu.org; Fri, 07 Oct 2016 08:13:39 -0400 Original-Received: by mail-oi0-x233.google.com with SMTP id r126so54844849oib.0 for ; Fri, 07 Oct 2016 05:13:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to; bh=8XyHs0JGfwYsgdYGFi32n0ZaEPhBUG8vXkuc5Yb9pFE=; b=irTzZzHNF1TkXiN1/U/5j0rTkXh+JA16Rgkgmv9sAYiRTjdAy6u/hCVCN7MfT5828R 4V0fmxI838HpwmqjJd9vFCI+B9ySHi0/ZUBH4qHc5LORQKoy76+a35ZJ7dBN4vqOI9DI lGf71l46rkmoVQEv1V9Su4NtMbtpRP8zM2ksYJ4Kxu2b1F7LfBUA+2SqvPYv+2rxXYFX 06vmZJNRdjeaBUqRfgbl8HO0vCWo5SVfwhbHBTxj3ONPq31EaN8mDqdrV+puUOOMchvt NtHR691q+L4zKcm0YhHsOkEnKye6oJapmYJW8GINY9fD8C9r9wpZCwC9ylQHrP0aL+JN XLFw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=8XyHs0JGfwYsgdYGFi32n0ZaEPhBUG8vXkuc5Yb9pFE=; b=WgMHSEuf36hGbnu71r9nw4bYtp2mD4psCKJXrDri/S03vLQbjgdmUpMdyGadOGsVTP GfEbamWioRrlECGDaQ/yL8zc1RTfo/J3E4mwaKeSYGnwDYKc4Zy/pAQKs0JrtQsHvcJw Q9ssFGmZVmJUjm60zRrDcOwAsWYUpi1EXPOzxQEymxb8SOBUtwJN+aEfc4jrOGHX9Fib 4zRsJcXhLuOHK8c5+0bMYHgbvyTQv3a1uOyCijY3npWmzi34Dqh0nPMVqoIv9ZBSfG7g +6iVyR2HvNw65W9vRBx5cCanYD4DjOF4Vpnx63ew3MXkPkggPX/RCQYL3+aIPQUQOPX5 aFsw== X-Gm-Message-State: AA6/9RmkBmglzNFeUbmdTQ3P9/CbbkGzsx2Pu5EvXN1nCqRptbtwIJzbtp9wiBIlzoWAXOK06SeX5XNxq/9aDg== X-Received: by 10.157.21.73 with SMTP id z9mr12574217otz.135.1475842418342; Fri, 07 Oct 2016 05:13:38 -0700 (PDT) Original-Received: by 10.202.237.200 with HTTP; Fri, 7 Oct 2016 05:13:37 -0700 (PDT) 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:124157 Archived-At: --94eb2c19213e1700aa053e4557a6 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable While reading the Emacs manual in Emacs using Info-mode, I found that non-ascii characters are displayed as octal escape sequences rather than rendered as glyphs. To repro: - start emacs with -Q - open the emacs manual and start a search: C-h r s - search for a section with non-ascii chars: it requotes text typed - the found sentence reads: > For example, it requotes text typed `like this' to text \342\200\230like this\342\200\231. - if correctly rendered, it would read: > For example, it requotes text typed `like this' to text =E2=80=98like thi= s=E2=80=99. If I select the text and write the region to a file, I can open that file and Emacs renders it correctly. I tried to remedy this by adding the following to my init file (and commenting out the rest of the file): (prefer-coding-system 'utf-8) (set-default-coding-systems 'utf-8) (set-terminal-coding-system 'utf-8) (set-keyboard-coding-system 'utf-8) (setq default-buffer-file-coding-system 'utf-8) The only effect this had was to change the default coding system for new files from utf-8-unix to utf-8. Running `describe-coding` in the Info buffer reported > Coding system for saving this buffer: t -- raw-text-unix both before and after adding the above settings. I also tried both gui and terminal, with and without the above settings, and saw the octal escape sequences in all cases. My Emacs version and configuration: In GNU Emacs 25.1.1 (x86_64-apple-darwin15.6.0, Carbon Version 157 AppKit 1404.47) of 2016-09-21 built on MachineCode.local Windowing system distributor 'Apple Inc.', version 10.11.6 Configured using: 'configure --enable-locallisppath=3D/usr/local/share/emacs/site-lisp --infodir=3D/usr/local/Cellar/emacs-mac/emacs-25.1-z-mac-6.0/share/info/em= acs --prefix=3D/usr/local/Cellar/emacs-mac/emacs-25.1-z-mac-6.0 --with-mac --enable-mac-app=3D/usr/local/Cellar/emacs-mac/emacs-25.1-z-mac-6.0' Configured features: NOTIFY ACL LIBXML2 ZLIB TOOLKIT_SCROLL_BARS Important settings: value of $LANG: en_US.UTF-8 locale-coding-system: utf-8-unix Major mode: Info Minor modes in effect: tooltip-mode: t global-eldoc-mode: t electric-indent-mode: t mac-mouse-wheel-mode: t tool-bar-mode: t menu-bar-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 buffer-read-only: t line-number-mode: t transient-mark-mode: t Recent messages: For information about GNU Emacs and the GNU system, type C-h C-a. [2 times] Load-path shadows: None found. Features: (shadow sort mail-extr emacsbug message dired format-spec rfc822 mml mml-sec password-cache epg epg-config gnus-util mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util help-fns help-mode cl-loaddefs pcase cl-lib mail-prsvr mail-utils jka-compr info easymenu mule-util time-date tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type mwheel mac-win term/common-win tool-bar dnd fontset image regexp-opt fringe tabulated-list newcomment elisp-mode lisp-mode prog-mode register page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core 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 charscript case-table epa-hook jka-cmpr-hook help simple abbrev 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 kqueue mac multi-tty make-network-process emacs) Memory information: ((conses 16 113689 6270) (symbols 48 20181 0) (miscs 40 73 185) (strings 32 19396 4598) (string-bytes 1 510009) (vectors 16 12204) (vector-slots 8 426977 6597) (floats 8 169 118) (intervals 56 4622 16) (buffers 976 19)) --94eb2c19213e1700aa053e4557a6 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
While reading the Emacs manual in Emacs using Info-mo= de, I found that non-ascii characters are displayed as octal escape sequenc= es rather than rendered as glyphs. To repro:

- sta= rt emacs with -Q
- open the emacs manual and start a search: C-h = r s
- search for a section with non-ascii chars:=C2=A0it requotes= text typed<return>
- the found sentence reads:
> For example, it requotes text typed `like this' to text \342\20= 0\230like this\342\200\231.
- if correctly rendered, it would rea= d:
> For example, it requotes text typed `like this' to te= xt =E2=80=98like this=E2=80=99.

If I select t= he text and write the region to a file, I can open that file and Emacs rend= ers it correctly. I tried to remedy this by adding the following to my init= file (and commenting out the rest of the file):

=
(prefer-coding-system 'utf-8)
(set-default-coding-s= ystems 'utf-8)
(set-terminal-coding-system 'utf-8)
<= div>(set-keyboard-coding-system 'utf-8)
(setq default-buffer-= file-coding-system 'utf-8)

The only effe= ct this had was to change the default coding system for new files from utf-= 8-unix to utf-8. Running `describe-coding` in the Info buffer reported
> Coding system for saving this buffer: t -- raw-text-unix
both before and after adding the above settings.

I also tried both gui and terminal, with and without the above settings, = and saw the octal escape sequences in all cases.

M= y Emacs version and configuration:

In GNU Ema= cs 25.1.1 (x86_64-apple-darwin15.6.0, Carbon Version 157 AppKit 1404.47)
=C2=A0of 2016-09-21 built on MachineCode.local
Windowing = system distributor 'Apple Inc.', version 10.11.6
Configur= ed using:
=C2=A0'configure --enable-locallisppath=3D/usr/loca= l/share/emacs/site-lisp
=C2=A0--infodir=3D/usr/local/Cellar/emacs= -mac/emacs-25.1-z-mac-6.0/share/info/emacs
=C2=A0--prefix=3D/usr/= local/Cellar/emacs-mac/emacs-25.1-z-mac-6.0 --with-mac
=C2=A0--en= able-mac-app=3D/usr/local/Cellar/emacs-mac/emacs-25.1-z-mac-6.0'
<= div>
Configured features:
NOTIFY ACL LIBXML2 ZLIB T= OOLKIT_SCROLL_BARS

Important settings:
= =C2=A0 value of $LANG: en_US.UTF-8
=C2=A0 locale-coding-system: u= tf-8-unix

Major mode: Info

Minor modes in effect:
=C2=A0 tooltip-mode: t
=C2=A0 = global-eldoc-mode: t
=C2=A0 electric-indent-mode: t
=C2= =A0 mac-mouse-wheel-mode: t
=C2=A0 tool-bar-mode: t
=C2= =A0 menu-bar-mode: t
=C2=A0 file-name-shadow-mode: t
= =C2=A0 global-font-lock-mode: t
=C2=A0 font-lock-mode: t
=C2=A0 blink-cursor-mode: t
=C2=A0 auto-composition-mode: t
=C2=A0 auto-encryption-mode: t
=C2=A0 auto-compression-mod= e: t
=C2=A0 buffer-read-only: t
=C2=A0 line-number-mode= : t
=C2=A0 transient-mark-mode: t

Recent= messages:
For information about GNU Emacs and the GNU system, ty= pe C-h C-a. [2 times]

Load-path shadows:
None found.

Features:
(shadow sort mail= -extr emacsbug message dired format-spec rfc822 mml
mml-sec passw= ord-cache epg epg-config gnus-util mm-decode mm-bodies
mm-encode = mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail
rfc20= 47 rfc2045 ietf-drums mm-util help-fns help-mode cl-loaddefs pcase
cl-lib mail-prsvr mail-utils jka-compr info easymenu mule-util time-date<= /div>
tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-ty= pe
mwheel mac-win term/common-win tool-bar dnd fontset image rege= xp-opt
fringe tabulated-list newcomment elisp-mode lisp-mode prog= -mode register
page menu-bar rfn-eshadow timer select scroll-bar = mouse jit-lock
font-lock syntax facemenu font-core frame cl-gener= ic 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 charscript= case-table epa-hook
jka-cmpr-hook help simple abbrev minibuffer = cl-preloaded nadvice
loaddefs button faces cus-face macroexp file= s text-properties overlay
sha1 md5 base64 format env code-pages m= ule custom widget
hashtable-print-readable backquote kqueue mac m= ulti-tty
make-network-process emacs)

Mem= ory information:
((conses 16 113689 6270)
=C2=A0(symbol= s 48 20181 0)
=C2=A0(miscs 40 73 185)
=C2=A0(strings 32= 19396 4598)
=C2=A0(string-bytes 1 510009)
=C2=A0(vecto= rs 16 12204)
=C2=A0(vector-slots 8 426977 6597)
=C2=A0(= floats 8 169 118)
=C2=A0(intervals 56 4622 16)
=C2=A0(b= uffers 976 19))
--94eb2c19213e1700aa053e4557a6--