-
-
Notifications
You must be signed in to change notification settings - Fork 137
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Tried aprint("rand")
from docs and got warning "[Warning] 'rand' is not printable in this environment."
#106
Comments
@Pyroseza Hi |
Hi @sepandhaghighi, I am using gitbash (mingw64) |
It seems |
Interesting... thanks for the feedback, looking forward to the future release |
Hi there, I’ve just done some reading up and found that mingw does not start up in UTF-8 but it can be both configured in the settings and it can be configured in memory for the current session using an environment variable My suggestion is to set this variable if it is not set, then output the characters, I don’t know if this will work for sure but more can be seen here: https://stackoverflow.com/a/36692549 I’ll be testing this shortly and confirm if it works or not, if not I will do a little more research on my side. |
So bad news that did not work for me, looks like mingw64 (a.k.a. git bash) does not play nice when outputting unicode chars. I did confirm that it works great in powershell. |
I found a solution but not the preferred solutio, it seems to be the way that python is launched without a UTF-8 encoding for IO, it launches windows' 'cp-1252'. I found that if I set this particular environment variable Here is my proof it works:
This is where I found the solution: I still think there must be a way to set this programmatically from your lib... I'm sure of it, or at least something similar... |
@Pyroseza |
Description
Tried
aprint("rand")
from docs README.md and got warning[Warning] 'rand' is not printable in this environment.
seems more like an error cos I don't get any output other than the warning.Steps/Code to Reproduce
Expected Behavior
one of the following at least
Actual Behavior
[Warning] 'rand' is not printable in this environment.
Operating System
Windows 10 Pro
Python Version
3.8.1
ART Version (Use :
art.__version__
)4.4
The text was updated successfully, but these errors were encountered: