Skip to content

LF / CR LF files are not handled correctly outside Windows #375

@sndth

Description

@sndth

Description

when you set EOL as CR LF (I didn't checked CR) in YAML file and you try to parse it on e.g. Linux, you will get error:
type_error: The node value is not a sequence. type=mapping

but when you try to parse LF file on Windows, everything should work

Reproduction steps

  1. create CR LF file (just by creating on Windows)
  2. copy file to Linux (server or something)
  3. when you try to deserialize document - node value is not a sequence!

Expected vs. actual results

expected result should handle EOL (for example like JSON libraries) and correctly parse document
currently we have problem with parsing

Minimal code example

No response

Error messages

No response

Compiler and operating system

Linux: C++latest, Clang 14.0.6 Windows: C++latest, MSVC latest

Library version

0.3.9/0.3.10

Validation

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions