This is the mail archive of the cygwin mailing list for the Cygwin project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
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
Attachment:
test.txt
Description: Text document
-- 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/
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |