|
Archives
D Programming
DD.gnu digitalmars.D digitalmars.D.bugs digitalmars.D.dtl digitalmars.D.dwt digitalmars.D.announce digitalmars.D.learn digitalmars.D.debugger C/C++ Programming
c++c++.announce c++.atl c++.beta c++.chat c++.command-line c++.dos c++.dos.16-bits c++.dos.32-bits c++.idde c++.mfc c++.rtl c++.stl c++.stl.hp c++.stl.port c++.stl.sgi c++.stlsoft c++.windows c++.windows.16-bits c++.windows.32-bits c++.wxwindows digitalmars.empire digitalmars.DMDScript electronics |
digitalmars.D.debugger - More ddbg UTF problems
ddbg has a problem evaluating strings of a fixed size when the
text in the string is only a few characters. (the remainder of the
string is set to 0xFF by the compiler).
With Windows, I'm always having to pass a fixed array which gets
partially filled by the OS.
(writefln also has a complains, but that's another problem to address)
The work around is to initialize the string with zeros before using.
import std.stdio;
int main()
{
char [32]Str;
Str[0..5]="Hello";
writefln(Str);
return 0;
}
Now that I have a chance to work on code again, ddbg is a real joy to use !
May 05 2007
|