dmd foreach loops throw exceptions on invalid UTF sequences, use replacementDchar instead

Dukc ajieskola at gmail.com
Fri Nov 5 10:48:30 UTC 2021


On Friday, 5 November 2021 at 10:09:40 UTC, norm wrote:
> It isn't always that simple, e.g. working on medical devices 
> crashing isn't an option when it comes to how we're going to 
> deal with bad data.

You can always validate the UTF beforehand if you don't want to 
crash.


More information about the Digitalmars-d mailing list