Skip to content

SWE-bench Verified: a patch with a byte that is not UTF-8 ends the score with UnicodeDecodeError #705

Description

@aitianshi

Priority

P3 · When convenient: wording, layout, tests

Evidence

  • benchmarks/swe-bench-verified/driver.py, score: open(.../model.patch) with the default encoding, strict.
  • An agent that changes a file in Latin-1 makes a patch with such a byte; score raises instead of grading.
  • The grader only asks whether there is a patch and reads the test log.
  • SWE-bench Multilingual (feat(catalogue): add SWE-bench Multilingual #698) reads it with errors="replace" and has a test for it.

Expected

The unit is graded.

Acceptance

  • model.patch read with encoding="utf-8", errors="replace"
  • The Multilingual test case runs over this driver too

Activity

  1. self-assigned this
    on Dec 2, 2026
  2. added
    bug
    P3
    on Dec 2, 2026
  3. added theissue type on Dec 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

P3bug

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions