digitalmars.D.bugs - (minor bug & patch) std.utf error messages
- Nick (47/47) Feb 09 2005 The error messages in std.utf contains what seems to be debug numbers. U...
The error messages in std.utf contains what seems to be debug numbers. Unless these are necessary, perhaps they should be removed? Here's a diff: --- dmd/src/phobos/std/utf.d 2005-01-19 12:14:22.000000000 +0100 +++ utf.d 2005-02-09 14:04:13.000000000 +0100 -127,7 +127,7 if (j > i) { Lerr: - throw new UtfError("1invalid UTF-8 sequence", j); + throw new UtfError("invalid UTF-8 sequence", j); } return n; } -146,7 +146,7 if (j > i) { Lerr: - throw new UtfError("2invalid UTF-16 sequence", j); + throw new UtfError("invalid UTF-16 sequence", j); } return n; } -168,7 +168,7 { uint j = UTF8stride[s[i]]; if (j == 0xFF) - throw new UtfError("3invalid UTF-8 sequence", i); + throw new UtfError("invalid UTF-8 sequence", i); i += j; } return i; -277,7 +277,7 Lerr: //printf("\ndecode: idx = %d, i = %d, length = %d s = \n'%.*s'\n%x\n'%.*s'\n", idx, i, s.length, s, s[i], s[i .. length]); - throw new UtfError("4invalid UTF-8 sequence", i); + throw new UtfError("invalid UTF-8 sequence", i); } unittest -407,7 +407,7 return c; Lerr: - throw new UtfError("5invalid UTF-32 value", i); + throw new UtfError("invalid UTF-32 value", i); } Nick
Feb 09 2005