Re: [GHC] #1771: hFileSize gives negative values
#1771: hFileSize gives negative values +--- Reporter: guest | Owner: igloo Type: merge | Status: closed Priority: normal | Milestone: 6.8.3 Component: libraries/base |Version: 6.6.1 Severity: normal | Resolution: fixed Keywords: hFileSize 2gb | Difficulty: Unknown Testcase: | Architecture: x86 Os: Windows | +--- Changes (by igloo): * status: new = closed * resolution: = fixed Comment: Merged -- Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/1771#comment:6 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler___ Glasgow-haskell-bugs mailing list Glasgow-haskell-bugs@haskell.org http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs
Re: [GHC] #1771: hFileSize gives negative values
#1771: hFileSize gives negative values +--- Reporter: guest | Owner: igloo Type: merge | Status: new Priority: normal | Milestone: 6.8.3 Component: libraries/base |Version: 6.6.1 Severity: normal | Resolution: Keywords: hFileSize 2gb | Difficulty: Unknown Testcase: | Architecture: x86 Os: Windows | +--- Changes (by simonmar): * owner: = igloo * type: bug = merge Comment: To merge (libraries/base patch): {{{ Wed Jan 23 10:29:04 GMT Standard Time 2008 Simon Marlow [EMAIL PROTECTED] * Windows: large file support for hFileSize and hSeek (#1771) }}} -- Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/1771#comment:5 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler___ Glasgow-haskell-bugs mailing list Glasgow-haskell-bugs@haskell.org http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs
Re: [GHC] #1771: hFileSize gives negative values
#1771: hFileSize gives negative values +--- Reporter: guest | Owner: Type: bug | Status: new Priority: normal | Milestone: 6.8.3 Component: libraries/base |Version: 6.6.1 Severity: normal | Resolution: Keywords: hFileSize 2gb | Difficulty: Unknown Testcase: | Architecture: x86 Os: Windows | +--- Changes (by simonmar): * milestone: 6.8 branch = 6.8.3 -- Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/1771#comment:4 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler___ Glasgow-haskell-bugs mailing list Glasgow-haskell-bugs@haskell.org http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs
Re: [GHC] #1771: hFileSize gives negative values
#1771: hFileSize gives negative values +--- Reporter: guest | Owner: Type: bug | Status: new Priority: normal | Milestone: 6.8 branch Component: Compiler|Version: 6.6.1 Severity: normal | Resolution: Keywords: hFileSize 2gb | Difficulty: Unknown Testcase: | Architecture: x86 Os: Windows | +--- Changes (by guest): * keywords: hFileSize = hFileSize 2gb Comment: This function is _filelengthi64. But don't forget to correct hSeek/hTell too. It's part of New Haskell I/O library drama which has long, long story :) one possible temporary solution is to use my Streams library (http://haskell.org/haskellwiki/Library/Streams) which supports large files -- Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/1771#comment:2 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler___ Glasgow-haskell-bugs mailing list Glasgow-haskell-bugs@haskell.org http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs
Re: [GHC] #1771: hFileSize gives negative values
#1771: hFileSize gives negative values ---+ Reporter: guest | Owner: Type: bug| Status: new Priority: normal | Milestone: 6.8 branch Component: Compiler |Version: 6.6.1 Severity: normal | Resolution: Keywords: hFileSize | Difficulty: Unknown Testcase: | Architecture: x86 Os: Windows| ---+ Changes (by igloo): * milestone: = 6.8 branch Comment: {{{ hFileSize :: Handle - IO Integer }}} so there's no good reason for this at the Haskell interface level. We probably need to call a different C function to allow for larger values. -- Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/1771#comment:1 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler___ Glasgow-haskell-bugs mailing list Glasgow-haskell-bugs@haskell.org http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs
[GHC] #1771: hFileSize gives negative values
#1771: hFileSize gives negative values ---+ Reporter: guest | Owner: Type: bug | Status: new Priority: normal| Milestone: Component: Compiler |Version: 6.6.1 Severity: normal| Keywords: hFileSize Difficulty: Unknown | Os: Windows Testcase:| Architecture: x86 ---+ hFileSize gives negative values for very big files. Tested several times it works properly except in two files. They have[[BR]] - 2.936.134.256 bytes[[BR]] - 3.846.960.665 bytes[[BR]] They are in NTFS in Windows XP SP2. Not able to test in Fat or in other OS. The next biggest file was 1.154.008.883 bytes and it worked fine. -- Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/1771 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler___ Glasgow-haskell-bugs mailing list Glasgow-haskell-bugs@haskell.org http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs