-
Notifications
You must be signed in to change notification settings - Fork 18
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
patch.py doesn't work with ams 1.6.2 loader! #49
Comments
use python3. |
MSYS2 is Linux Environment on Windows using pacman! But I try again on Linux! |
of course i know that. and msys2 or mingw or whatever is not linux, what i meant was real linux. check again if you actually ran with 'python3' because sometimes default python is set to python2 (which comes pre installed) |
@hanai3Bi Found the error and a Solution to the Problem! python used the encoding languange = cp1252 (germany) but it has to be UTF-8! If someone has the same Problem on Windows: `How to enable UTF-8: Control Panel > Clock and Region > Region > Administrative tab > Change system locale button > enable Beta:Use Unicode UTF-8 for worldwide language support. The same GUI window can also be launched from Settings > Time & Language > Language & region > Administrative language settings > Administrative tab > Change system locale button > enable Beta:Use Unicode UTF-8 for worldwide language support. Should help! |
If I use the patch.py script I get those errors!
Is that intended or normal?
`becky@BFS-PC MINGW64 ~/atmosphere/stratosphere/loader/source
py patch.py
HEAD ist jetzt bei 872c18c50 kern: fix some comment typos
Traceback (most recent call last):
File "C:\msys64\home\becky\atmosphere\stratosphere\loader\source\patch.py", line 29, in
file_replace_str(ldr_process_creation,
File "C:\msys64\home\becky\atmosphere\stratosphere\loader\source\patch.py", line 10, in file_replace_str
content = f.read()
^^^^^^^^
File "C:\Program Files\Python312\Lib\encodings\cp1252.py", line 23, in decode
return codecs.charmap_decode(input,self.errors,decoding_table)[0]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
UnicodeDecodeError: 'charmap' codec can't decode byte 0x8d in position 8178: character maps to
`
Doesn't matter if I use MSYS terminals (normal MSYS2 or the used MINGW64) or Powershell or CMD!
All the time I get those messages!
The text was updated successfully, but these errors were encountered: