[Issue 8528] New: std.stream.File believes /dev/stdin to be seekable
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Thu Aug 9 09:24:42 PDT 2012
http://d.puremagic.com/issues/show_bug.cgi?id=8528
Summary: std.stream.File believes /dev/stdin to be seekable
Product: D
Version: D2
Platform: All
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
Component: Phobos
AssignedTo: nobody at puremagic.com
ReportedBy: lomereiter at gmail.com
--- Comment #0 from Artem Tarasov <lomereiter at gmail.com> 2012-08-09 09:24:38 PDT ---
(I'm aware that std.stream will be replaced but anyway...)
If I access stdin like this, seekable flag is set:
new std.stream.File("/dev/stdin"); // seekable = true
A workaround is to use std.stdio.File:
auto g0 = std.stdio.File("/dev/stdin");
auto g = new std.stream.File(g0.fileno, FileMode.In); // seekable = false
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list