[Issue 755] std.utf.decode() throws exception with unclear error message
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Thu Dec 28 04:42:53 PST 2006
http://d.puremagic.com/issues/show_bug.cgi?id=755
deewiant at gmail.com changed:
What |Removed |Added
----------------------------------------------------------------------------
Summary|std.utf.decode() throws |std.utf.decode() throws
|exception with typo |exception with unclear error
| |message
------- Comment #1 from deewiant at gmail.com 2006-12-28 06:42 -------
It's not a typo: within std.utf you'll find "Ninvalid UTF-8 sequence", where N
ranges from 1 to 5. 4 is just the most common, because it's in the decode()
method which is used by std.format.doFormat, which, in turn, is used by the
writef family.
I agree, however, that it makes for ugly error messages, and it does appear a
lot like a typo, so I'll leave the bug open - just renamed.
--
More information about the Digitalmars-d-bugs
mailing list