Skip to content

Reading text as typedbytes affects lines with encoding other than utf8 #82

@a4tunado

Description

@a4tunado

Streaming backend assumes that input format is typedbytes even if -inputformat argument is 'text':
https://github.com/klbostee/dumbo/blob/release-0.21.36/dumbo/backends/streaming.py#L81

This leads to apply typedbytes.PairedInput to all input lines: https://github.com/klbostee/dumbo/blob/release-0.21.36/dumbo/core.py#L380

Appling util.loadtext instead of typedbytes.PairedInput resolves this issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions