[Issue 4060] New: Phobos + linux problems with files > 2GB
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sun Apr 4 15:50:48 PDT 2010
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: nobody at puremagic.com
ReportedBy: egonelbre at gmail.com
--- Comment #0 from Egon Elbre <egonelbre at 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: -------
More information about the Digitalmars-d-bugs
mailing list