Comments (3)
Changed the print statement on line 70 to
print("<!-- Decoding symbol " + str(c) + ": \"" + symbol + "\" -->")
doesn't print the symbol being converted in the svg comments but not really needed.
More could be removed - ": ""
from xbox-tools.
For reference, the error is in:
xbox-tools/xtf-converter/main.py
Line 70 in d060d2f
The problem is that @kaosengr is using the Windows CMD prompt, which is an ASCII terminal. Here's how I reproduced it:
$ python2 -c "print(u'\xa0')"
$ PYTHONIOENCODING=ascii python2 -c "print(u'\xa0')"
Traceback (most recent call last):
File "<string>", line 1, in <module>
UnicodeEncodeError: 'ascii' codec can't encode character u'\xa0' in position 0: ordinal not in range(128)
$ PYTHONIOENCODING=ascii python3 -c "print(u'\xa0')"
Traceback (most recent call last):
File "<string>", line 1, in <module>
UnicodeEncodeError: 'ascii' codec can't encode character '\xa0' in position 0: ordinal not in range(128)
The backslash-removal simply broke printing of symbol
, hence you worked around the crash by accident. A better workaround is to remove that line altogether.
However, to fix this problem for everyone, we should add an error handler for this line, which catches the error and simply doesn't print the symbol part (symbol
) of the message, if the terminal can't print it.
I don't think I'll fix it myself - you found your workaround anyway (which is easy enough) and it's a rare issue (most terminals will be some form of unicode).
This issue remains open until the problem is fixed in the code.
from xbox-tools.
Closed, because project moved to https://github.com/XboxDev/xtf-converter
An equivalent issue has been created on the new upstream.
from xbox-tools.
Related Issues (20)
- python-scripts: dsp-homebrew has dead code
- dump-xbox abnormal execution HOT 11
- dump-xbox: Incomplete xboxkrnl.exe dump
- dump-xbox: `dumpFile` is disabled
- python-scripts: dvd_info.py is not doing what it claims to do
- python-scripts: step_nv2a.py is buggy HOT 1
- python-scripts: step_nv2a.py needs description in header HOT 1
- controller-tool: Fix configuration format
- controller-tool: Don't copy L/R trigger to vibration or do it differently
- dump-dvd-kit: default.xbe is compressed HOT 2
- Make README.md more inviting
- xtf-converter: `scale` parameter is bad HOT 1
- xtf-converter: Detect exploited files HOT 1
- python-scripts: Use xboxpy module instead of xbox folder HOT 1
- controller-tool: Not doing XID correctly and overall poor design choices
- python-scripts: dsp_homebrew.py does not work in XQEMU / nxdk-rdt
- Eject script? HOT 2
- python-scripts: get_av_settings.py uses wrong flags
- Xbox ADPCM decoder is limited to 64 samples instead of IMA's 65 samples HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from xbox-tools.