Comments (4)
There is no error if I run:
steamctl apps list
I can even get the ∞
character to be rendered correctly:
208570 Dishonored: Dunwall City Trials DLC
208575 Dishonored: The Knife of Dunwall
208580 STAR WARS™ Knights of the Old Republic™ II: The Sith Lords™
208610 Skullgirls ∞Endless Beta∞
208620 Midnight Mysteries: Salem Witch Trials
208630 Midnight Mysteries 3: Devil on the Mississippi
208640 Midnight Mysteries 4: Haunted Houdini
However, the list is really long, so it gets truncated by the Windows console, and it would be handier to save it to a text file.
I remember encountering this issue in the past, without reporting it, and then editing the code to save the output to a file.
I wonder if there is a better fix.
On a side-note, I am not sure if the issue only happens on Windows.
from steamctl.
The error can be reproduced with a Python file scratch_1.py
, unrelated to steamctl
:
print('∞')
python scratch_1.py
Output:
∞
python scratch_1.py > temp.txt
Output:
Traceback (most recent call last):
File "C:\Users\Wok\AppData\Roaming\JetBrains\PyCharmCE2022.2\scratches\scratch_1.py", line 1, in <module>
print('∞')
File "C:\Users\Wok\AppData\Local\Programs\Python\Python311\Lib\encodings\cp1252.py", line 19, in encode
return codecs.charmap_encode(input,self.errors,encoding_table)[0]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
UnicodeEncodeError: 'charmap' codec can't encode character '\u221e' in position 0: character maps to <undefined>
from steamctl.
Use a terminal that supports utf8 and is configured to use utf8
from steamctl.
Use a terminal that supports utf8 and is configured to use utf8
That is the case. The issue is with the redirection to a file, which does not seem to work properly on Windows.
For instance, in the picture below, there is no error, but an inconsistency.
echo ∞
echo ∞ > temp.txt
type temp.txt
I can fix the inconsistency with chcp 65001
, but that does not fix the error when redirecting the output of a Python script.
chcp 65001
echo ∞
echo ∞ > temp.txt
type temp.txt
For the error with Python, I have a small workaround.
from steamctl.
Related Issues (20)
- [FEATURE REQUEST] Delete files on disk that are not in manifest HOT 4
- [BUG] Steam broke the workshop download functionality HOT 1
- [BUG] In the event of a Depot not having a valid manifest GID, program errors out HOT 2
- Demo for idle-games HOT 1
- [BUG] steamctl not able to download older manifests HOT 9
- [BUG] SetAppBuildLive is producing 405 GET errors. HOT 3
- [FEATURE REQUEST] Password argument HOT 6
- [BUG] (EResult.Fail) Failed to login: <EResult.Fail: 2> HOT 2
- [BUG] `No access token available` for some depot HOT 8
- [BUG] Program stops with `(EResult.AccessDenied) Failed to acquire manifest code` error HOT 6
- Steamctl does not like to run in the background/process HOT 2
- [BUG] Password is not saved correctly after some time HOT 4
- Add a command to request concurrent online users in an appid
- [BUG] Cannot add authenticator to account HOT 1
- [FEATURE REQUEST] do not use the same exit code for different events
- [FEATURE REQUEST] option to override timeouts
- [BUG] Password environment variables do not work within depot download command due to subparser HOT 1
- [BUG] steamctl depot list -a 570 raising TypeError: int() argument must be a string, a bytes-like object or a real number, not 'dict' HOT 1
- [BUG] steamctl not saving depot_keys HOT 1
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 steamctl.