From unknown Sun Jun 22 08:06:04 2025 X-Loop: help-debbugs@gnu.org Subject: bug#21003: 24.5; IPython Inferior unicode issue 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: To: 21003@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.143628272111195 (code B ref -1); Tue, 07 Jul 2015 15:26:02 +0000 Received: (at submit) by debbugs.gnu.org; 7 Jul 2015 15:25:21 +0000 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 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 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 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,FREEMAIL_FROM autolearn=disabled version=3.3.2 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 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 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 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 Received: by mIni.local (Postfix, from userid 501) id 936DE48EB2DE; Tue, 7 Jul 2015 22:44:17 +0800 (CST) From: Semio Date: Tue, 07 Jul 2015 22:44:17 +0800 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable 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-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.0 (----) 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 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: -4.0 (----) 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)) From unknown Sun Jun 22 08:06:04 2025 X-Loop: help-debbugs@gnu.org Subject: bug#21003: 24.5; IPython Inferior unicode issue Resent-From: Andreas =?UTF-8?Q?R=C3=B6hler?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 07 Jul 2015 16:55:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 21003 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 21003@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.143628807525012 (code B ref -1); Tue, 07 Jul 2015 16:55:02 +0000 Received: (at submit) by debbugs.gnu.org; 7 Jul 2015 16:54:35 +0000 Received: from localhost ([127.0.0.1]:43644 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZCW8h-0006VM-D2 for submit@debbugs.gnu.org; Tue, 07 Jul 2015 12:54:35 -0400 Received: from eggs.gnu.org ([208.118.235.92]:35268) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZCW8f-0006V7-Jb for submit@debbugs.gnu.org; Tue, 07 Jul 2015 12:54:34 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZCW8Z-0008Pt-B2 for submit@debbugs.gnu.org; Tue, 07 Jul 2015 12:54:28 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-0.0 required=5.0 tests=BAYES_20 autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:45436) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZCW8Z-0008Pp-7d for submit@debbugs.gnu.org; Tue, 07 Jul 2015 12:54:27 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:48763) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZCW8Y-00008G-8B for bug-gnu-emacs@gnu.org; Tue, 07 Jul 2015 12:54:27 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZCW8Q-0008OE-Fd for bug-gnu-emacs@gnu.org; Tue, 07 Jul 2015 12:54:26 -0400 Received: from mout.kundenserver.de ([212.227.126.187]:54992) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZCW8Q-0008Nm-6x for bug-gnu-emacs@gnu.org; Tue, 07 Jul 2015 12:54:18 -0400 Received: from [192.168.178.31] ([77.12.103.234]) by mrelayeu.kundenserver.de (mreue001) with ESMTPSA (Nemesis) id 0Mep3o-1ZNbxs0nEm-00OEFZ for ; Tue, 07 Jul 2015 18:54:12 +0200 Message-ID: <559C0428.3090903@easy-emacs.de> Date: Tue, 07 Jul 2015 18:54:00 +0200 From: Andreas =?UTF-8?Q?R=C3=B6hler?= User-Agent: Mozilla/5.0 (X11; Linux i686; rv:31.0) Gecko/20100101 Thunderbird/31.4.0 MIME-Version: 1.0 References: In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-Provags-ID: V03:K0:/hgtbshIzWY34DNqp16cVZHq1uxIhIoWdaveQbJ2CCcbp3FzhHD JHwgb0xknyc98lSKJyZKkdac2udKd4s6wgL9pIOxiY3JsJV0ZM64Gq4BOpiXjkjEtLts25C 9ASJ9lbeJvFEQYD/9ut6IfNsLtT/1zGv0fQPRtRhkTCSaQ+W1Bd89PS+lwhVtOW5M74+QOd ay/jD6Z7X6rnO16x7Gqww== X-UI-Out-Filterresults: notjunk:1;V01:K0:nIjPHTYP0lg=:oxuRQdEt9ZugMtowDhkbrZ Aorua8YlBV0WK2O7m6Bl1LdMNa9sg8ywD+qMvLqD0MMXclE2nVNIFiJByUWlPAb/Z3QYhqRKL 2FIDHVEfOdeC2yVLthpLB8uR/c25cFQkfab8KST6YwU7eecU//GWs5KnVjnyYvYNw7AwauAbb krpFvI2q7ETE+SESzD6VkoouR0b161mMtZGkoeXXuunJb825Grgn/QGU+5eYo8k9VKBQgaNdr qwt+bt5dWzo73uWMaYNCpMt2DfTZ9lXIIv+7SaHiM0UrFq8RPpAzX0XttpHJKPKwPNW8ClD5+ caAZW3gsZeF+EbnI9N2Y/3Ru1xQic2Vo7WkveYYCfx5AVRSgCAWCUMMFLBB9UMvuyWYn1Tn1W GzRfZn8DOL7NTmSdBhxo78WI2ehczoFtNlI2pN5Zvmt6CHCJhIYdESh27jT6i0wUv8QrgWaV8 wWWzC3S/HVd3x67o0fPOvTrAItKHiPtnQWJdY6TCkxDyXCzVtAhK13D+irgv2psp5oR5Xd1E3 H8uJ4S2t+qMjlkq2NVG+tH8oIQa5NRCKrXyod77NRPxSIvbkXNH1MMTehUU0pTS0prSrYKGOO B/lP9dkuLAQqokRpwwUHhMp0iInBPNi6YSNqK+4Jetqehp2BwUBTjys55ig5UlP/Edmf5TsIj qCBNYrNOhFv3h6+6uQ9om8jTL8Nw9oD+J6f0Zbjqk1liSSSnnSaqrJGNQqW8XWV5PB2IOs4I2 zbzyFg6BMT08++teAgdxMDYe5y2kuz7p20HifEy9zB2XayYqZwBRdoLInIo= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [generic] X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -5.0 (-----) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 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: -5.0 (-----) Am 07.07.2015 um 16:44 schrieb Semio: > 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'测试' # Chinese char >> Out[20]: u'\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd'=20 >> Maybe print(u'测试') is correct? From debbugs-submit-bounces@debbugs.gnu.org Tue Aug 11 21:51:03 2015 Received: (at control) by debbugs.gnu.org; 12 Aug 2015 01:51:03 +0000 Received: from localhost ([127.0.0.1]:53587 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZPLC3-000691-3X for submit@debbugs.gnu.org; Tue, 11 Aug 2015 21:51:03 -0400 Received: from eggs.gnu.org ([208.118.235.92]:53339) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZPLC0-00068c-I3 for control@debbugs.gnu.org; Tue, 11 Aug 2015 21:51:00 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZPLBw-00055k-2b for control@debbugs.gnu.org; Tue, 11 Aug 2015 21:51:00 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:47768) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZPLBv-00055g-WC for control@debbugs.gnu.org; Tue, 11 Aug 2015 21:50:56 -0400 Received: from [190.246.172.180] (port=55945 helo=localhost) by fencepost.gnu.org with esmtpsa (TLS1.2:DHE_RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1ZPLBv-0007wq-8m for control@debbugs.gnu.org; Tue, 11 Aug 2015 21:50:55 -0400 From: fgallina@gnu.org (=?utf-8?Q?Fabi=C3=A1n?= Ezequiel Gallina) To: control@debbugs.gnu.org Subject: Date: Tue, 11 Aug 2015 22:50:49 -0300 Message-ID: <87io8ll1fq.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::e X-Spam-Score: -3.2 (---) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 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.2 (---) tags 21003 notabug From unknown Sun Jun 22 08:06:04 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.503 (Entity 5.503) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Semio Subject: bug#21003: closed (24.5; IPython Inferior unicode issue) Message-ID: References: <87egj9l1di.fsf@gnu.org> X-Gnu-PR-Message: they-closed 21003 X-Gnu-PR-Package: emacs X-Gnu-PR-Keywords: notabug Reply-To: 21003@debbugs.gnu.org Date: Wed, 12 Aug 2015 01:53:03 +0000 Content-Type: multipart/mixed; boundary="----------=_1439344383-23841-1" This is a multi-part message in MIME format... ------------=_1439344383-23841-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #21003: 24.5; IPython Inferior unicode issue which was filed against the emacs package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 21003@debbugs.gnu.org. --=20 21003: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D21003 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1439344383-23841-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 21003-done) by debbugs.gnu.org; 12 Aug 2015 01:52:20 +0000 Received: from localhost ([127.0.0.1]:53591 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZPLDH-0006BA-QX for submit@debbugs.gnu.org; Tue, 11 Aug 2015 21:52:20 -0400 Received: from eggs.gnu.org ([208.118.235.92]:53972) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZPLDE-0006Az-Pk for 21003-done@debbugs.gnu.org; Tue, 11 Aug 2015 21:52:17 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZPLDA-0006Km-Al for 21003-done@debbugs.gnu.org; Tue, 11 Aug 2015 21:52:16 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:47809) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZPLDA-0006Ki-7f for 21003-done@debbugs.gnu.org; Tue, 11 Aug 2015 21:52:12 -0400 Received: from [190.246.172.180] (port=55951 helo=localhost) by fencepost.gnu.org with esmtpsa (TLS1.2:DHE_RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1ZPLD9-00089J-GS for 21003-done@debbugs.gnu.org; Tue, 11 Aug 2015 21:52:12 -0400 From: fgallina@gnu.org (=?utf-8?Q?Fabi=C3=A1n?= Ezequiel Gallina) To: 21003-done@debbugs.gnu.org Subject: 24.5; IPython Inferior unicode issue Date: Tue, 11 Aug 2015 22:52:09 -0300 Message-ID: <87egj9l1di.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.2 (-----) X-Debbugs-Envelope-To: 21003-done X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 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: -5.2 (-----) This is not a python.el bug but rather an IPython one, please see: http://mail.scipy.org/pipermail/ipython-dev/2014-July/014498.html -- Cheers, Fabi=C3=A1n. ------------=_1439344383-23841-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 7 Jul 2015 15:25:21 +0000 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 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 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 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,FREEMAIL_FROM autolearn=disabled version=3.3.2 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 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 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 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 Received: by mIni.local (Postfix, from userid 501) id 936DE48EB2DE; Tue, 7 Jul 2015 22:44:17 +0800 (CST) From: Semio To: bug-gnu-emacs@gnu.org Subject: 24.5; IPython Inferior unicode issue Date: Tue, 07 Jul 2015 22:44:17 +0800 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable 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-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.0 (----) X-Debbugs-Envelope-To: submit 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 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: -4.0 (----) 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)) ------------=_1439344383-23841-1--