{"comment":{"created_at":"2011-10-16T01:05:54Z","body":"Let's see if we can find the time to resolve those.  If we can make headway into the harder PRs we have before release, we won't need to.  I'd like to tackle them one at a time over the next week, we'll see how it goes.","updated_at":"2011-10-16T01:05:54Z","url":"https://api.github.com/repos/ipython/ipython/issues/comments/2418491","id":2418491,"user":{"gravatar_id":"95198572b00e5fbcd97fb5315215bf7a","avatar_url":"https://secure.gravatar.com/avatar/95198572b00e5fbcd97fb5315215bf7a?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","url":"https://api.github.com/users/fperez","id":57394,"login":"fperez"}},"action":"created","issue":{"number":822,"created_at":"2011-09-29T18:35:05Z","pull_request":{"diff_url":null,"patch_url":null,"html_url":null},"body":"found this today during a presentation, dumping quickly...\r\n<pre>\r\nIn [35]: files\r\nOut[35]: \r\n['pics:',\r\n '83547885.jpg',\r\n '',\r\n 'ppt:',\r\n 'Aiguille du Midi.pps',\r\n 'Ca\\xc3\\xb1o Cristales.pps',\r\n 'parejas disparejas.ppt',\r\n 'Underwater.pps',\r\n '',\r\n 'pub:',\r\n 'image_summary.py',\r\n 'stained_glass_barcelona.png',\r\n 'trapezoid_demo.py',\r\n 'trapezoid.py',\r\n 'trap.py',\r\n 'trap.py~']\r\n\r\nIn [36]: for f in files:\r\n   ....:     !echo $f\r\n   ....:     \r\npics:\r\n83547885.jpg\r\n\r\nppt:\r\nAiguille du Midi.pps\r\n---------------------------------------------------------------------------\r\nUnicodeDecodeError                        Traceback (most recent call last)\r\n/home/fperez/tmp/<ipython-input-36-df6db386b8e9> in <module>()\r\n      1 for f in files:\r\n----> 2     get_ipython().system(u\"echo $f\")\r\n      3 \r\n\r\n/home/fperez/usr/lib/python2.6/site-packages/IPython/core/interactiveshell.pyc in system_raw(self, cmd)\r\n   1999         # a non-None value would trigger :func:`sys.displayhook` calls.\r\n\r\n   2000         # Instead, we store the exit_code in user_ns.\r\n\r\n-> 2001         self.user_ns['_exit_code'] = os.system(self.var_expand(cmd, depth=2))\r\n   2002 \r\n   2003     # use piped system by default, because it is better behaved\r\n\r\n\r\n/home/fperez/usr/lib/python2.6/site-packages/IPython/core/interactiveshell.pyc in var_expand(self, cmd, depth)\r\n   2473                           sys._getframe(depth+1).f_locals # locals\r\n   2474                           )\r\n-> 2475         return py3compat.str_to_unicode(str(res), res.codec)\r\n   2476 \r\n   2477     def mktempfile(self, data=None, prefix='ipython_edit_'):\r\n\r\n/home/fperez/usr/lib/python2.6/site-packages/IPython/external/Itpl/_Itpl.pyc in __str__(self)\r\n    240     def __str__(self):\r\n    241         \"\"\"Evaluate and substitute the appropriate parts of the string.\"\"\"\r\n--> 242         return self._str(self.globals,self.locals)\r\n    243 \r\n    244     def __repr__(self):\r\n\r\n/home/fperez/usr/lib/python2.6/site-packages/IPython/external/Itpl/_Itpl.pyc in _str(self, glob, loc)\r\n    197             if live: app(str(eval(chunk,glob,loc)))\r\n    198             else: app(chunk)\r\n--> 199         out = ''.join(result)\r\n    200         try:\r\n    201             return str(out)\r\n\r\nUnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 2: ordinal not in range(128)\r\n</pre>","comments":5,"title":"Unicode bug in Itpl when expanding shell variables in syscalls with !","updated_at":"2011-10-16T01:05:54Z","url":"https://api.github.com/repos/ipython/ipython/issues/822","id":1779001,"assignee":null,"milestone":{"number":6,"created_at":"2011-04-10T01:57:33Z","due_on":null,"title":"0.12","creator":{"gravatar_id":"95198572b00e5fbcd97fb5315215bf7a","avatar_url":"https://secure.gravatar.com/avatar/95198572b00e5fbcd97fb5315215bf7a?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","url":"https://api.github.com/users/fperez","id":57394,"login":"fperez"},"url":"https://api.github.com/repos/ipython/ipython/milestones/6","open_issues":77,"closed_issues":45,"description":"Stabilization of new apis after we get 0.11 out the door.","state":"open"},"closed_at":null,"user":{"gravatar_id":"95198572b00e5fbcd97fb5315215bf7a","avatar_url":"https://secure.gravatar.com/avatar/95198572b00e5fbcd97fb5315215bf7a?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","url":"https://api.github.com/users/fperez","id":57394,"login":"fperez"},"html_url":"https://github.com/ipython/ipython/issues/822","labels":[{"name":"prio-critical","url":"https://api.github.com/repos/ipython/ipython/labels/prio-critical","color":"f50505"},{"name":"type-bug","url":"https://api.github.com/repos/ipython/ipython/labels/type-bug","color":"d9596c"},{"name":"unicode","url":"https://api.github.com/repos/ipython/ipython/labels/unicode","color":"053485"}],"state":"open"},"legacy":{"issue_id":1779001,"comment_id":2418491}}