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

Status : 

  Fixed<br /><br />
		This item has been fixed in the current or upcoming version of this product.<br /><br />
		A more detailed explanation for the resolution of this particular item may have been provided in the comments section.


5
0
Sign in
to vote
ID 591030 Comments
Status Closed Workarounds
Type Bug Repros 2
Opened 8/30/2010 6:16:13 AM
Access Restriction Public

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.
Sign in to post a comment.
Posted by mahmoud [MSFT] 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 Helen [MSFT] 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 Helen [MSFT] 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)