Skip to content

fix(agbench): add encoding='utf-8' to open() calls in GAIA benchmark scripts#7659

Open
Ghraven wants to merge 3 commits intomicrosoft:mainfrom
Ghraven:fix/encoding-utf8-open-calls-agbench-gaia
Open

fix(agbench): add encoding='utf-8' to open() calls in GAIA benchmark scripts#7659
Ghraven wants to merge 3 commits intomicrosoft:mainfrom
Ghraven:fix/encoding-utf8-open-calls-agbench-gaia

Conversation

@Ghraven
Copy link
Copy Markdown

@Ghraven Ghraven commented May 6, 2026

Addresses #5566

Problem

Several open() calls in the GAIA benchmark scripts omit an explicit encoding parameter. Python uses the system default locale encoding when none is specified, which is not UTF-8 on many Windows installations. This causes UnicodeDecodeError when reading files containing non-ASCII characters in non-English environments.

Affected files:

  • benchmarks/GAIA/Scripts/custom_tabulate.py
  • benchmarks/GAIA/Scripts/init_tasks.py
  • benchmarks/GAIA/Templates/MagenticOne/scenario.py

Fix

Add encoding='utf-8' to all open() calls in the above files. This is consistent with the fix in PR #7648 which addressed the same issue in task_centric_memory utilities.

Ghraven added 3 commits May 6, 2026 08:17
Addresses microsoft#5566

Without an explicit encoding, `open()` uses the system default locale encoding,
which is not UTF-8 on many Windows installations. This causes `UnicodeDecodeError`
when reading files containing non-ASCII characters in non-English environments.

Fix: add `encoding='utf-8'` to all `open()` calls in the GAIA benchmark scripts.
Addresses microsoft#5566

Without an explicit encoding, `open()` uses the system default locale encoding,
which is not UTF-8 on many Windows installations. This causes `UnicodeDecodeError`
when reading files containing non-ASCII characters in non-English environments.

Fix: add `encoding='utf-8'` to all `open()` calls in the GAIA benchmark scripts.
Addresses microsoft#5566

Without an explicit encoding, `open()` uses the system default locale encoding,
which is not UTF-8 on many Windows installations. This causes `UnicodeDecodeError`
when reading files containing non-ASCII characters in non-English environments.

Fix: add `encoding='utf-8'` to all `open()` calls in the GAIA benchmark scripts.
@Ghraven
Copy link
Copy Markdown
Author

Ghraven commented May 6, 2026

@microsoft-github-policy-service agree

@nexoracontrol-ops
Copy link
Copy Markdown

ใช้ NEXORA stack บน Windows locale ไทย

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants