mitre / mitre/pydecipher

UnicodeEncodeError when writing to log

Open
#1 7 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug question
Dominant language
Python
Stars
61
Forks
9
PR merge metrics
No merged PRs in 30d

Description

Suggested solution: add encoding parameter to log open - main.py, line 258

    with output_dir.joinpath(log_name).open("w", encoding='utf-8') as log_file_ptr:

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at main.py line 258, where the log file is opened, and review the reported UnicodeEncodeError when writing logs. Verify the change with log content containing non-ASCII characters; done means the log is written without the encoding error.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
tooling
Issue type
Bug
Difficulty
1/5
Estimated time
Under an hour
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.