You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@burr.apache.org by je...@apache.org on 2026/08/05 19:53:55 UTC

(burr) branch main updated: Use UTF-8 for test case JSON files (#860)

This is an automated email from the ASF dual-hosted git repository.

jernejfrank pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/burr.git


The following commit(s) were added to refs/heads/main by this push:
     new a05875f0 Use UTF-8 for test case JSON files (#860)
a05875f0 is described below

commit a05875f09687b958bd83a5767be25d37821bee83
Author: Rolly Calma <11...@users.noreply.github.com>
AuthorDate: Thu Aug 6 03:53:50 2026 +0800

    Use UTF-8 for test case JSON files (#860)
---
 burr/lifecycle/default.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/burr/lifecycle/default.py b/burr/lifecycle/default.py
index 0f7b86c9..8bc234a2 100644
--- a/burr/lifecycle/default.py
+++ b/burr/lifecycle/default.py
@@ -51,7 +51,7 @@ class StateAndResultsFullLogger(PostRunStepHook, PreRunStepHook):
             raise ValueError(f"jsonl_path must end with .jsonl. Got: {jsonl_path}")
         self.jsonl_path = jsonl_path
         open_mode = "a" if mode == "append" else "w"
-        self.f = open(jsonl_path, mode=open_mode)  # open in append mode
+        self.f = open(jsonl_path, mode=open_mode, encoding="utf-8")
         self.tracker = []  # tracker to keep track of timing/whatnot
         self.json_dump = json_dump