From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Aidan Kehoe Newsgroups: gmane.emacs.bugs Subject: bug#17909: 24.4.50; #'read-char fails with non-ASCII characters on the TTY Date: Thu, 3 Jul 2014 15:52:29 +0100 Message-ID: <53b5.6e2d.acbe5.a52f@parhasard.net> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1404399288 31140 80.91.229.3 (3 Jul 2014 14:54:48 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 3 Jul 2014 14:54:48 +0000 (UTC) To: 17909@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Jul 03 16:54:41 2014 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1X2iP4-00019Y-G6 for geb-bug-gnu-emacs@m.gmane.org; Thu, 03 Jul 2014 16:54:26 +0200 Original-Received: from localhost ([::1]:60186 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X2iP4-0005fN-4w for geb-bug-gnu-emacs@m.gmane.org; Thu, 03 Jul 2014 10:54:26 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:55855) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X2iOq-0005QC-IW for bug-gnu-emacs@gnu.org; Thu, 03 Jul 2014 10:54:21 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1X2iOh-0000Km-GC for bug-gnu-emacs@gnu.org; Thu, 03 Jul 2014 10:54:12 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:50632) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X2iOh-0000Kg-CC for bug-gnu-emacs@gnu.org; Thu, 03 Jul 2014 10:54:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1X2iOg-0003er-TE for bug-gnu-emacs@gnu.org; Thu, 03 Jul 2014 10:54:03 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Aidan Kehoe Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 03 Jul 2014 14:54:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 17909 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.140439919913962 (code B ref -1); Thu, 03 Jul 2014 14:54:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 3 Jul 2014 14:53:19 +0000 Original-Received: from localhost ([127.0.0.1]:41782 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1X2iNu-0003d0-Oj for submit@debbugs.gnu.org; Thu, 03 Jul 2014 10:53:19 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:53730) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1X2iNn-0003cW-D4 for submit@debbugs.gnu.org; Thu, 03 Jul 2014 10:53:12 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1X2iNZ-0008Ik-9O for submit@debbugs.gnu.org; Thu, 03 Jul 2014 10:53:02 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:44235) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X2iNZ-0008IO-6k for submit@debbugs.gnu.org; Thu, 03 Jul 2014 10:52:53 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:55330) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X2iNR-0004RL-F9 for bug-gnu-emacs@gnu.org; Thu, 03 Jul 2014 10:52:53 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1X2iNJ-0007w2-V6 for bug-gnu-emacs@gnu.org; Thu, 03 Jul 2014 10:52:45 -0400 Original-Received: from zeus.asclepian.ie ([78.47.46.212]:34842) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X2iNJ-0007uU-O6 for bug-gnu-emacs@gnu.org; Thu, 03 Jul 2014 10:52:37 -0400 Original-Received: by zeus.asclepian.ie (Postfix, from userid 1002) id 8AF0382D4E6; Thu, 3 Jul 2014 15:52:33 +0100 (IST) X-Mailer: VM 8.2.0b under 21.5 (beta34) "kale" a1808d52a34a XEmacs Lucid (i386-apple-darwin10.8.0) X-NS5-file-as-sent: t X-detected-operating-system: by eggs.gnu.org: FreeBSD 9.x X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.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-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:91142 Archived-At: Hello -- Starting from the shell: $ cd /Sources/emacs/src $ ./emacs -nw -Q RET Then, within *scratch*, I type =C6=92 or =C3=A4, both of which are availa= ble on my OS keyboard layout, and both of which self-insert without problems in the sa= me GNU Emacs. I then type: (string (read-char)) =C3=A4 This gives: "=C3=83" I note that the first octet of the UTF-8 encoding of =C3=A4 corresponds t= o this, as we see with, e.g.: (decode-coding-string (encode-coding-string "=C3=A4" 'utf-8) 'iso-8859-1) =3D> "=C3=83=C2=A4" This bug means, among other things, that I can't name a register =C3=A4 o= n the TTY. The same recipe works correctly when the same binary is started = as a Cocoa app, e.g. with open /Sources/emacs/nextstep/Emacs.app . Best, Aidan In GNU Emacs 24.4.50.1 (i386-apple-darwin10.8.0, NS appkit-1038.36 Versio= n 10.6.8 (Build 10K549)) of 2014-07-03 on bonbon Configured using: `configure --with-ns' Configured features: RSVG IMAGEMAGICK DBUS ACL GNUTLS LIBXML2 ZLIB Important settings: value of $LANG: de_DE.UTF-8 locale-coding-system: utf-8-unix Major mode: Lisp Interaction Minor modes in effect: tooltip-mode: t electric-indent-mode: t 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 auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t Recent input: ESC [ ? 1 ; 2 c ESC x r e p o r t - e m a c s - b u=20 g RET Recent messages: For information about GNU Emacs and the GNU system, type C-h C-a. Load-path shadows: None found. Features: (shadow sort gnus-util mail-extr emacsbug message dired format-spec rfc822 mml easymenu mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util help-fns mail-prsvr mail-utils xterm time-date tooltip electric uniquify ediff-hook vc-hooks lisp-float-type mwheel ns-win tool-bar dnd fontset image regexp-opt fringe tabulated-list newcomment lisp-mode prog-mode register page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer 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 make-network-process dbusbind cocoa ns multi-tty emacs) Memory information: ((conses 8 81518 6143) (symbols 24 17883 0) (miscs 20 32 176) (strings 16 11312 3556) (string-bytes 1 289486) (vectors 8 7574) (vector-slots 4 346198 1936) (floats 8 64 283) (intervals 28 258 201) (buffers 512 12)) --=20 =E2=80=98Liston operated so fast that he once accidentally amputated an a= ssistant=E2=80=99s=20 fingers along with a patient=E2=80=99s leg, [=E2=80=A6] The patient and t= he assistant both=20 died of sepsis, and a spectator reportedly died of shock, resulting in th= e=20 only known procedure with a 300% mortality.=E2=80=99 (Atul Gawande, NEJM,= 2012)