Skip to content

bin:infer-encoding error conditions #2355

@michaelhkay

Description

@michaelhkay

The spec says

If no effective encoding could be chosen, an error is raised.

It's not clear what error is raised.

Under Error conditions, it says

[[bin:invalid-encoding] is raised if $encoding is invalid for the given input.

Does this mean that the function must ensure that the input can be successfully decoded using the returned encoding? This seems wasteful, since decode-string() is going to repeat this test. If it doesn't mean this, what does it mean?

Metadata

Metadata

Assignees

No one assigned

    Labels

    EXPathAn issue related to the EXPath extension functionsEnhancementA change or improvement to an existing featurePR PendingA PR has been raised to resolve this issue

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions