From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Semio Newsgroups: gmane.emacs.bugs Subject: bug#21003: 24.5; IPython Inferior unicode issue Date: Tue, 07 Jul 2015 22:44:17 +0800 Message-ID: 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 1436282789 11183 80.91.229.3 (7 Jul 2015 15:26:29 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 7 Jul 2015 15:26:29 +0000 (UTC) To: 21003@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Jul 07 17:26:17 2015 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 1ZCUlB-0001Wn-79 for geb-bug-gnu-emacs@m.gmane.org; Tue, 07 Jul 2015 17:26:13 +0200 Original-Received: from localhost ([::1]:58935 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZCUlA-0007WE-Hd for geb-bug-gnu-emacs@m.gmane.org; Tue, 07 Jul 2015 11:26:12 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:45404) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZCUl5-0007W7-Jb for bug-gnu-emacs@gnu.org; Tue, 07 Jul 2015 11:26:09 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZCUl1-0007vD-6n for bug-gnu-emacs@gnu.org; Tue, 07 Jul 2015 11:26:07 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:42113) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZCUl1-0007v6-3j for bug-gnu-emacs@gnu.org; Tue, 07 Jul 2015 11:26:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1ZCUl0-0002vS-J0 for bug-gnu-emacs@gnu.org; Tue, 07 Jul 2015 11:26:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Semio Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 07 Jul 2015 15:26:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 21003 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.143628272111195 (code B ref -1); Tue, 07 Jul 2015 15:26:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 7 Jul 2015 15:25:21 +0000 Original-Received: from localhost ([127.0.0.1]:43559 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZCUkK-0002uT-7b for submit@debbugs.gnu.org; Tue, 07 Jul 2015 11:25:21 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:54509) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZCUTe-0002WR-Pi for submit@debbugs.gnu.org; Tue, 07 Jul 2015 11:08:10 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZCUTU-0005Za-7O for submit@debbugs.gnu.org; Tue, 07 Jul 2015 11:08:01 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:54036) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZCUTU-0005ZW-47 for submit@debbugs.gnu.org; Tue, 07 Jul 2015 11:07:56 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:39751) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZCUTP-00005Q-CH for bug-gnu-emacs@gnu.org; Tue, 07 Jul 2015 11:07:56 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZCUTL-0005Sd-CZ for bug-gnu-emacs@gnu.org; Tue, 07 Jul 2015 11:07:51 -0400 Original-Received: from [221.5.85.73] (port=60141 helo=mIni.local) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZCUTJ-0005KA-TB for bug-gnu-emacs@gnu.org; Tue, 07 Jul 2015 11:07:47 -0400 Original-Received: by mIni.local (Postfix, from userid 501) id 936DE48EB2DE; Tue, 7 Jul 2015 22:44:17 +0800 (CST) X-detected-operating-system: by eggs.gnu.org: Mac OS X [generic] X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Mailman-Approved-At: Tue, 07 Jul 2015 11:25:18 -0400 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:104801 Archived-At: 1. open a .py file or enable python mode 2. run the interactive shell with ```M-x python-shell-switch-to-shell``` 3. use ipython(/usr/local/bin/ipython -i) for the inferior python. 4. in the inferior python buffer, eval a string contains unicode chars, for example: > In [19]: u'=E6=B5=8B=E8=AF=95' # Chinese char > Out[20]: u'\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd'=3D20 > In [21]: test =3D u'=E5=86=8D=E6=AC=A1=E6=B5=8B=E8=AF=95' > In [25]: test > Out[26]: u'\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\u= =3D fffd\ufffd' No matter what the string is, the output will be a list of '\ufffd', which is wrong. In GNU Emacs 24.5.1 (x86_64-apple-darwin13.4.0, NS apple-appkit-1265.21) of 2015-04-11 on builder10-9.porkrind.org Windowing system distributor `Apple', version 10.3.1348 Configured using: `configure --with-ns '--enable-locallisppath=3D/Library/Application Support/Emacs/${version}/site-lisp:/Library/Application Support/Emacs/site-lisp'' Important settings: locale-coding-system: utf-8-unix Major mode: Inferior Python Minor modes in effect: company-mode: t clean-aindent-mode: t yas-global-mode: t yas-minor-mode: t helm-descbinds-mode: t helm-mode: t shell-dirtrack-mode: t compilation-shell-minor-mode: t projectile-global-mode: t projectile-mode: t recentf-mode: t window-numbering-mode: t volatile-highlights-mode: t global-vi-tilde-fringe-mode: t vi-tilde-fringe-mode: t global-undo-tree-mode: t undo-tree-mode: t global-page-break-lines-mode: t ido-vertical-mode: t guide-key-mode: t popwin-mode: t flx-ido-mode: t global-fasd-mode: t global-evil-surround-mode: t evil-surround-mode: t global-evil-search-highlight-persist: t evil-search-highlight-persist: t show-smartparens-global-mode: t show-smartparens-mode: t smartparens-mode: t evil-jumper-mode: t evil-escape-mode: t global-anzu-mode: t anzu-mode: t eval-sexp-fu-flash-mode: t savehist-mode: t global-hl-line-mode: t xterm-mouse-mode: t winner-mode: t global-auto-revert-mode: t evil-leader-mode: t evil-mode: t evil-local-mode: t override-global-mode: t electric-indent-mode: t mouse-wheel-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 column-number-mode: t line-number-mode: t transient-mark-mode: t Recent messages: [yas] Prepared just-in-time loading for ~/.emacs.d/snippets [yas] Reloaded everything (snippets will load just-in-time).... Blocking call to accept-process-output with quit inhibited!! [3 times] Make dedicated process? (y or n) y Making python-shell-interpreter local to *Python[/Users/semio/src/quant/scr= apy/cnstockdata/build.py]* while let-bound! Making python-shell-interpreter-args local to *Python[/Users/semio/src/quan= t/scrapy/cnstockdata/build.py]* while let-bound! Sent python-shell-completion-setup-code Sent python-ffap-setup-code Sent python-eldoc-setup-code ad-handle-definition: `eval-defun' got redefined Load-path shadows: None found. Features: (shadow sort mail-extr emacsbug message rfc822 mml mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mail-utils helm-command helm-elisp helm-eval edebug company-capf align tabify face-remap evil-iedit-state iedit iedit-lib company-files company-keywords company-etags company-gtags company-template company-dabbrev-code company-dabbrev company-anaconda company anaconda-mode f json-rpc eldoc flycheck hi-lock hideshow goto-addr auto-highlight-symbol clean-aindent-mode highlight-numbers parent-mode rainbow-delimiters rainbow-identifiers yasnippet help-mode smartparens-python python json helm-descbinds helm-mode helm-files image-dired tramp tramp-compat tramp-loaddefs trampver shell pcomplete format-spec dired-x dired-aux ffap helm-buffers helm-elscreen helm-tags helm-bookmark helm-adaptive helm-info bookmark helm-locate helm-help helm-match-plugin helm-grep helm-regexp helm-plugin grep helm-external helm-net browse-url xml url url-proxy url-privacy url-expand url-methods url-history url-cookie url-domsuf url-util url-parse auth-source gnus-util mm-util mail-prsvr password-cache url-vars mailcap helm-utils dired compile helm helm-source eieio eieio-core flyspell ispell projectile ibuf-ext ibuffer recentf tree-widget disp-table server solarized py-yapf window-numbering etags volatile-highlights vi-tilde-fringe undo-tree diff toc-org ert find-func ewoc debug smooth-scrolling smartparens-config powerline powerline-separators color powerline-themes page-break-lines ido-vertical-mode guide-key-tip pos-tip guide-key s ucs-normalize popwin flx-ido flx fasd grizzl exec-path-from-shell evil-surround evil-search-highlight-persist evil-numbers evil-lisp-state smartparens evil-jumper evil-indent-textobject evil-exchange evil-escape evil-args evil-anzu anzu mule-util warnings info eval-sexp-fu rx highlight frame-fns avoid diminish adaptive-wrap evil-evilified-state finder-inf ielm easymenu pp comint ansi-color savehist saveplace hl-line xt-mouse winner autorevert filenotify ido evil-leader evil evil-integration evil-maps evil-commands evil-command-window evil-types evil-search evil-ex evil-macros evil-repeat evil-states evil-core byte-opt evil-common windmove thingatpt rect evil-digraphs evil-vars ring use-package bytecomp byte-compile cconv bind-key easy-mmode dash cl-extra vc-git wid-edit leuven-theme core-configuration-layer core-dotspacemacs package epg-config ht cl-macs cl gv core-spacemacs derived edmacro kmacro cl-loaddefs cl-lib core-use-package-ext core-evilify-keymap core-micro-state corelv core-toggle core-fonts-support pcase core-spacemacs-buffer core-funcs core-themes-support advice help-fns core-auto-completion core-release-management core-emacs-backports subr-x 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 cocoa ns multi-tty emacs) Memory information: ((conses 16 671203 236755) (symbols 48 49169 96) (miscs 40 323 772) (strings 32 101305 99668) (string-bytes 1 3002714) (vectors 16 63389) (vector-slots 8 1118596 90209) (floats 8 651 1441) (intervals 56 3426 98) (buffers 960 21))