Bug 978 – std.utf's toUTF* functions accept some invalid and reject some valid UTF

Status
RESOLVED
Resolution
FIXED
Severity
major
Priority
P2
Component
phobos
Product
D
Version
D1 (retired)
Platform
x86
OS
Windows
Creation time
2007-02-17T09:10:00Z
Last change time
2014-02-16T15:21:46Z
Assigned to
rsinfu
Creator
matti.niemenmaa+dbugzilla

Attachments

IDFilenameSummaryContent-TypeSize
102utf_test.dUTF conversion testing moduletext/plain27407
103utf_test_phobos.txtTesting module results for Phobos with DMD 1.006text/plain1165

Comments

Comment #0 by matti.niemenmaa+dbugzilla — 2007-02-17T09:10:26Z
Attached is a UTF conversion testing module and its output when used with Phobos's std.utf.toUTF* functions. I only tested the toUTF* functions, but I would expect some of the problems to be present with the others as well.
Comment #1 by matti.niemenmaa+dbugzilla — 2007-02-17T09:10:57Z
Created attachment 102 UTF conversion testing module
Comment #2 by matti.niemenmaa+dbugzilla — 2007-02-17T09:11:33Z
Created attachment 103 Testing module results for Phobos with DMD 1.006
Comment #3 by rsinfu — 2010-06-23T17:50:22Z
Comitted a fix to svn. The bug will be fixed in release 1.063 and 2.048.