copy and paste of text into Python console produces chinese
Bug #1686800 reported by
richard aras
This bug report is a duplicate of:
Bug #1559103: Pasting into scripting console results in different text.
Edit
Remove
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
KiCad |
New
|
Undecided
|
Unassigned |
Bug Description
On mac OSX 10.12.4, copying and pasting text from other applications yields Chinese characters rather than roman and therefore produces Python errors.
Kicad version 70c961f
tags: | added: python |
To post a comment you must log in.
Example: ======= ======= ======= ======
libcurl/ 7.51.0 SecureTransport zlib/1.2.8 richard2/ Library/ Preferences/ kicad/PyShell_ pcbnew_ startup. py Kicad/kicad. app/Contents/ Frameworks/ python/ site-packages/ wx-3.0- osx_cocoa/ wx/py/shell. py", line 562, in OnKeyDown processLine( ) Kicad/kicad. app/Contents/ Frameworks/ python/ site-packages/ wx-3.0- osx_cocoa/ wx/py/shell. py", line 886, in processLine push(command) Kicad/kicad. app/Contents/ Frameworks/ python/ site-packages/ wx-3.0- osx_cocoa/ wx/py/shell. py", line 976, in push push(command) Kicad/kicad. app/Contents/ Frameworks/ python/ site-packages/ wx-3.0- osx_cocoa/ wx/py/interpret er.py", line 80, in push source) Kicad/kicad. app/Contents/ Frameworks/ python/ site-packages/ wx-3.0- osx_cocoa/ wx/py/interpret er.py", line 90, in runsource rpreter. runsource( self, source) Library/ Frameworks/ Python. framework/ Versions/ 2.7/lib/ python2. 7/code. py", line 79, in runsource showsyntaxerror (filename) Library/ Frameworks/ Python. framework/ Versions/ 2.7/lib/ python2. 7/code. py", line 139, in showsyntaxerror Library/ Frameworks/ Python. framework/ Versions/ 2.7/lib/ python2. 7/code. py", line 171, in write stderr. write(data) Kicad/kicad. app/Contents/ Frameworks/ python/ site-packages/ wx-3.0- osx_cocoa/ wx/py/shell. py", line 1247, in writeErr write(text) Kicad/kicad. app/Contents/ Frameworks/ python/ site-packages/ wx-3.0- osx_cocoa/ wx/py/shell. py", line 1001, in write AddText( text) Kicad/kicad. app/Contents/ Frameworks/ python/ site-packages/ wx-3.0- osx_cocoa/ wx/stc. py", line 2041, in AddText Ctrl_AddText( *args, **kwargs)
Application: kicad
Version: (2017-04-07 revision 70c961f)-master, release build
Libraries: wxWidgets 3.0.2
Py 0.9.8
Python 2.7.10 (default, Feb 6 2017, 23:53:20)
[GCC 4.2.1 Compatible Apple LLVM 8.0.0 (clang-800.0.34)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
Startup script executed: /Users/
偁䥈
File "<input>", line 1
Traceback (most recent call last):
File "/Applications/
self.
File "/Applications/
self.
File "/Applications/
self.more = self.interp.
File "/Applications/
more = self.more = self.runsource(
File "/Applications/
more = InteractiveInte
File "/System/
self.
File "/System/
map(self.write, list)
File "/System/
sys.
File "/Applications/
self.
File "/Applications/
self.
File "/Applications/
return _stc.StyledText
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe5 in position 4: ordinal not in range(128)
Better release information: ======= ======= ======= ======= ======= ===
Platform: Mac OS X (Darwin 16.5.0 x86_64), 64 bit, Little endian, wxMac compatible with 2.8) GRAPHICS_ CONTEXT= ON
USE_ WX_OVERLAY= ON
KICAD_ SCRIPTING= ON
KICAD_ SCRIPTING_ MODULES= ON
KICAD_ SCRIPTING_ WXPYTHON= ON
KICAD_ SCRIPTING_ ACTION_ MENU=ON
BUILD_ GITHUB_ PLUGIN= ON
KICAD_ USE_OCE= ON
- Build Info -
wxWidgets: 3.0.2 (UTF-8,STL containers,
Boost: 1.61.0
Curl: 7.43.0
KiCad - Compiler: Clang 7.3.0 with C++ ABI 1002
Settings: USE_WX_