On Fri, May 1, 2009 at 11:52 AM, Carlos Smith <carlos-sm...@sympatico.ca> wrote:
> > So may be there is a problem with fileno() ?? I have no idea. >> You mean std.stream? That's been part of Phobos .. well, forever. At >> least 5 years anyway. > > No, i mean the stream.d that comes in stream.zip from the > Pavel's site: http://int19h.tamb.ru/files/stream.zip > His stream library seems different. as, it have functions to > read Unicode strings from the console. I tried to compile > it with dmd 1.043 but there are many errors. std.stream *is* Pavel's code. That zip is absolutely ancient. It's no surprise it doesn't compile. > I know that function. But it allows to read > char[] arrays only. (if i read well the declarations). Sure, but char[] IS Unicode! It's just UTF-8. > How do i read wchar[] arrays from the console with it ? Use std.cstream.din.readLineW() if you want a wchar[] so badly.