http://d.puremagic.com/issues/show_bug.cgi?id=4060

           Summary: Phobos + linux problems with files > 2GB
           Product: D
           Version: 1.057
          Platform: x86
        OS/Version: Linux
            Status: NEW
          Severity: major
          Priority: P2
         Component: Phobos
        AssignedTo: nob...@puremagic.com
        ReportedBy: egonel...@gmail.com


--- Comment #0 from Egon Elbre <egonel...@gmail.com> 2010-04-04 15:50:46 PDT ---
Phobos is unable to seek/position positions that are > int.max

---
import std.stdio;
import std.string;
import std.stream;

int main(string[] args){
    auto file = new BufferedFile(args[1]);
    file.seek(cast(ulong)int.max + cast(ulong) atoi(args[2]), SeekPos.Set);
    writefln("%d", file.position);
    return 1;
}
---

Problem also happens with trying to use MMFile with files larger than int.max.

Probably related to bug 3409.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------

Reply via email to