Skip to content

Issues with the c_string_encoding directive at the top of a file. #2632

@robertwb

Description

@robertwb

Placing

# cython: c_string_encoding=default

in the first two lines of the file will trigger the source coding detector and try to open the file in default encoding, which of course doesn't exist.

(Perhaps we should always be ignoring it, as it's only applied if it happens to fall within the first two lines...)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions