Hi Joe,

Upon closer inspection it appears the bug is in the cross-platform I/O
layer and not in the Windows-specific code. I pushed a fix and added
some unit tests to ensure it won't come up again. Thanks for the bug
report.

Slava

On Wed, Jul 7, 2010 at 1:02 AM, Joe Groff <[email protected]> wrote:
> stream-tell appears to always return zero for an input-port created
> for a file by <file-reader> on Windows:
>
> ---
> ( scratchpad ) "resource:misc/icons/Factor_128x128.png" binary [
>    0 seek-end seek-input
>    tell-input .
> ] with-file-reader
> 0
> ---
>
> Note that calling tell-handle on the underlying win32-file object works:
>
> ---
> ( scratchpad ) "resource:misc/icons/Factor_128x128.png" binary [
>    0 seek-end seek-input
>    input-stream get handle>> tell-handle .
> ] with-file-reader
> 11945
> ---
>
> -Joe
>
> ------------------------------------------------------------------------------
> This SF.net email is sponsored by Sprint
> What will you do first with EVO, the first 4G phone?
> Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
> _______________________________________________
> Factor-talk mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/factor-talk
>

------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
Factor-talk mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/factor-talk

Reply via email to