Home Dashboard Directory Help
Search

ftell returns negative value for UTF-8 files opened with textmode and ccs by Martin Richter


Status: 

Closed
 as Fixed Help for as Fixed


5
0
Sign in
to vote
Type: Bug
ID: 591030
Opened: 8/30/2010 6:16:13 AM
Access Restriction: Public
0
Workaround(s)
view
2
User(s) can reproduce this bug

Description

Create a file UTF-8 coded with BOM.
Open it with fopen and textmode and ccs=UNICODE.

Use ftell and again fseek wit the returned value.
fseek fails.
Details
Sign in to post a comment.
Posted by Microsoft on 10/27/2011 at 12:07 PM
Thank you for reporting this issue to Microsoft.

This bug has been fixed, and the fix will appear in the next release of Visual Studio.

Thanks,
Mahmoud Saleh
Windows C++ Team
Posted by MandatoryDefault on 10/20/2010 at 10:45 AM
I reproduced the problem. I've attached a complete project that consistently fails.
Posted by Martin Richter on 9/10/2010 at 1:21 AM
I just added a sample that shows the problem.
Posted by Microsoft on 9/10/2010 at 12:44 AM
We are unable to reproduce the issue with the steps you provided.

Please give us a demo project to demonstrate this issue so that we can conduct further research.

It would be greatly appreciated if you could provide us with that information as quickly as possible. If we do not hear back from you within 7 days, we will close this issue.

Thanks again for your efforts and we look forward to hearing from you.

Posted by Microsoft on 8/30/2010 at 10:45 PM
Thanks for your feedback.

We are rerouting this issue to the appropriate group within the Visual Studio Product Team for triage and resolution. These specialized experts will follow-up with your issue.
Posted by Microsoft on 8/30/2010 at 5:03 PM
Thank you for your feedback, we are currently reviewing the issue you have submitted. If this issue is urgent, please contact support directly(http://support.microsoft.com)
Sign in to post a workaround.
File Name Submitted By Submitted On File Size  
TestFtell.zip 9/10/2010 5 KB
ftell.zip 10/20/2010 3 KB