-
-
Notifications
You must be signed in to change notification settings - Fork 7.3k
Closed
Labels
platform: visual studiorelated to MSVCrelated to MSVCsolution: proposed fixa fix for the issue has been proposed and waits for confirmationa fix for the issue has been proposed and waits for confirmation
Description
-
If a string field contains accented letters (e.g. à è ), a json::dump to std::string will silently crash
-
run this simple snippet:
void foobar() { using namespace nlohmann; json foo = { "resumè" }; std::string bar = foo.dump(4); } -
I expect the .dump operation to complete without problems...
-
...but instead, it silently crashes (i.e. control flow goes out of scope of foobar() )
-
compiler: Visual Studio 2015 version 14.0.25431.01 update 3; Windows 10
-
Did you use a released version of the library or the version from the
developbranch? yes
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
platform: visual studiorelated to MSVCrelated to MSVCsolution: proposed fixa fix for the issue has been proposed and waits for confirmationa fix for the issue has been proposed and waits for confirmation