Hi,

I've got the following bug that only reproduces itself under Cygwin 
environment. Using basic_istream::tellg() on files with DOS line endings 
results in skipping characters from the input. Attached program tellg-bug.cpp 
tries to reproduce the behavior using a test file test.txt. Commenting out call 
to tellg() results in correct reading of characters while presence of call to 
tellg() results in skipping a number of characters that is equal to the number 
of lines (line endings) in the file. NOTE: File test.txt must have DOS line 
endings for the bug to be reproducible so please make sure these line endings 
were not changed while sent over the internet. Converting file to UNIX format 
with dos2unix utility effectively removes the bug.

I think this bug may be related to the following discussions on the Internet:

http://sourceforge.net/mailarchive/message.php?msg_id=6614018
http://www.cygwin.com/ml/cygwin/2001-03/msg00399.html

Kind regards,
Yuriy

-- 
___________________________________________________
Play 100s of games for FREE! http://games.mail.com/

Attachment: tellg-bug.cpp
Description: Binary data

Attachment: cygcheck.out
Description: Binary data

<123>
The number of chars skipped
depends on the number of lines
in this file
--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

Reply via email to