jbeder / yaml-cpp

A YAML parser and emitter in C++
MIT License
4.91k stars 1.77k forks source link

Running under the Chinese folder throws an exception #1270

Closed northgreen closed 4 months ago

northgreen commented 4 months ago

When I run my project in the Chinese folder,the line YAML::Node yaml = YAML::LoadFile(P);reports an error :

Exception at 0x7ff967944d8c, code: 0xe06d7363: C++ exception, flags=0x81 (first chance) in MSVCP140!std::_Xlength_error

Exception at 0x7ff967944d8c, code: 0xe06d7363: C++ exception, flags=0x81 in MSVCP140!std::_Xlength_error

From my subsequent debugging results, I found that it was probably a problem with your project or MSVC, but how should this be solved?

I used the source code recently downloaded by the master of yaml-cpp, and used visual studio 2019 for compilation.

jbeder commented 4 months ago

Stack Overflow.