Skip to content

fix: open() calls missing encoding='utf-8' may crash on non-UTF-8 systems #4286

Description

@nandithasalim

Several open() calls in the codebase don't specify encoding='utf-8',
which can cause UnicodeDecodeError on Windows systems with non-UTF-8
locales (e.g. GBK).

Affected files:

  • packages/opentelemetry-instrumentation-qdrant/init.py (lines 26, 30)
  • scripts/codegen/generate_evaluator_models.py (line 27)

Fix: add encoding='utf-8' to all text-mode open() calls.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions