This code import std.conv; void main() { import std.stdio; auto str = "0=\x00\x02\x55\x40&\xff\xf0\n\x00\x04\x55\x40\xff\xf0~4+10\n"; writeln(parse!uint(str)); } throws "UTFException" when compiled with '-debug', but does not throw otherwise. I believe this is not expected behavior. std.conv.parse should not care about the rest of the content, and just stop after reading the number.
https://github.com/dlang/phobos/pull/5310
Commits pushed to stable at https://github.com/dlang/phobos https://github.com/dlang/phobos/commit/813efcb7e4b6c109f223cd00013218fbd289025d Fix Issue 17282 - std.conv.parse throws with -debug https://github.com/dlang/phobos/commit/34ad8b488d3a32f94b12a61f49c55ebf34533073 Merge pull request #5310 from JackStouffer/issue17282 [REG] Fix Issue 17282 - std.conv.parse throws with -debug merged-on-behalf-of: Martin Nowak <code@dawg.eu>
Commits pushed to master at https://github.com/dlang/phobos https://github.com/dlang/phobos/commit/813efcb7e4b6c109f223cd00013218fbd289025d Fix Issue 17282 - std.conv.parse throws with -debug https://github.com/dlang/phobos/commit/34ad8b488d3a32f94b12a61f49c55ebf34533073 Merge pull request #5310 from JackStouffer/issue17282
Commits pushed to newCTFE at https://github.com/dlang/phobos https://github.com/dlang/phobos/commit/813efcb7e4b6c109f223cd00013218fbd289025d Fix Issue 17282 - std.conv.parse throws with -debug https://github.com/dlang/phobos/commit/34ad8b488d3a32f94b12a61f49c55ebf34533073 Merge pull request #5310 from JackStouffer/issue17282
Commits pushed to dmd-cxx at https://github.com/dlang/phobos https://github.com/dlang/phobos/commit/813efcb7e4b6c109f223cd00013218fbd289025d Fix Issue 17282 - std.conv.parse throws with -debug https://github.com/dlang/phobos/commit/34ad8b488d3a32f94b12a61f49c55ebf34533073 Merge pull request #5310 from JackStouffer/issue17282