Closed TommyB123 closed 6 years ago
Southclaws - Today at 4:27 PM can you drop a comment on the issue any comment
Okay so you're formatting year month day into one long number, if the data was 1997-03-12
then that format
call would result in 19970312
which just looks like one fat integer, 19,970,312. This won't work with any time parser so you should add some separators, probably -
characters.
As for the crash, I've not reproduced it yet but I would assume it's from here. If I can get it to reproduce I'll add a proper try/catch around the parser code so it at least doesn't crash on invalid input like this!
I can't seem to reproduce the crash on Linux or Windows, is there any chance you know the exact numbers that went into the format call?
Found the crash line, just for reference, 6021 in date.h
:
auto& f = use_facet<time_get<CharT>>(is.getloc());
Try these:
all is well thanks mr. southclaw
me code
backtrace