Skip to content

Fix encoding error happen when running in CJK windows. - #24

Merged
Qonfused merged 1 commit into
Qonfused:mainfrom
hong9-:fix/encoding-error
Jul 26, 2026
Merged

Fix encoding error happen when running in CJK windows.#24
Qonfused merged 1 commit into
Qonfused:mainfrom
hong9-:fix/encoding-error

Conversation

@hong9-

@hong9- hong9- commented Jan 25, 2026

Copy link
Copy Markdown
Contributor

Resolve Issue #23

When open or write file by any type, make it force to open or write by utf-8 encoding

@Qonfused Qonfused linked an issue Jul 26, 2026 that may be closed by this pull request
@Qonfused
Qonfused merged commit 18167d3 into Qonfused:main Jul 26, 2026
7 checks passed
@Qonfused Qonfused added status:done All issue tasks are completed. type:bug Something isn't working labels Jul 26, 2026
Qonfused added a commit that referenced this pull request Jul 27, 2026
- Add hong9- (PR #24: CJK Windows encoding fix)
- Add NexusKMT (PR #26: Rich markup rendering fix)
Qonfused added a commit that referenced this pull request Jul 27, 2026
Remove incorrect encoding parameter from binary mode open() call.
Binary mode ('rb') doesn't accept encoding parameter.

This was incorrectly added in PR #24 (CJK encoding fix) which added
encoding to all open() calls, but binary mode doesn't accept encoding.

Fixes: ValueError: binary mode doesn't take an encoding argument
when running lock --update on projects with local file paths.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

project:cli project:library status:done All issue tasks are completed. type:bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Failing when reading file in CJK environment windows

2 participants