Skip to content

html output break utf-8 #275

@Dushistov

Description

@Dushistov

I have lines like this in my codebase:

 if !matches!(it.next(), Some('A'..='Z') | Some('А'..='Я')) {
        return false;
 }

Generating html with such command cargo llvm-cov --html test.

For letter 'Я' resulted html code looks like this:

=&apos;\320<span class='tooltip-content'>5</span></div>\257&apos;

so html generator breaks valid utf-8 sequence for 'Я' (\320\257) into two parts and insert html code between,
making it invalid.

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-upstream-bugCategory: This is a bug of compiler or dependencies (the fix may require action in the upstream)

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions