On Thursday, 6 February 2014 at 22:20:38 UTC, Dicebot wrote:
On Thursday, 6 February 2014 at 22:18:10 UTC, Brad Anderson wrote:You should probably validate utf from all foreign sources. Catch a problem with it as it comes in rather than in some arbitrary part of your program.http://dlang.org/phobos/std_utf.html#.validatepure @safe void validate(S)(in S str) if (isSomeString!S); Throws: UTFException if str is not well-formed. ;)
Heh, well then... let me just wipe this egg off my face. :P
