Skip to content

Parsing of colors should not be locale dependent #46

@simonschmeisser

Description

@simonschmeisser

rgba.push_back(std::stof(pieces[i]));

uses std::stof which is locale dependent and will truncate floats to ints if the decimal seperator does not match

this is the same issue as addressed in #45 but not included there as neither I nor anybody else looked closely enough ...

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions