Skip to content
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

windows: ビルド時のUnicodeDecodeErrorを修正 #5

Merged
merged 2 commits into from
May 20, 2023

Conversation

nuta
Copy link
Owner

@nuta nuta commented May 20, 2023

Pythonのバージョンによっては、UnicodeDecodeErrorエラーが出るようになっていた。
Pythonを UTF-8モード に強制することで修正。

PS C:\Users\seiya\microkernel-book> make
UPDATE build/consts.mk
IPCSTUB libs/common/ipcstub.h
Traceback (most recent call last):
  File "C:\Users\seiya\microkernel-book\tools\generate_ipcstub.py", line 324, in <module>
    main()
  File "C:\Users\seiya\microkernel-book\tools\generate_ipcstub.py", line 303, in main
    idl_text = open(args.idl).read()
  File "C:\Users\seiya\AppData\Local\Programs\Python\Python310\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 0x81 in position 10: character maps to <undefined>

@nuta nuta enabled auto-merge (squash) May 20, 2023 11:51
@nuta nuta merged commit 28af067 into main May 20, 2023
3 checks passed
@nuta nuta deleted the fix-UnicodeDecodeError-in-windows branch August 20, 2023 13:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant