Skip to content

ftell() not consistent in C11#8360

Open
damorinCan wants to merge 1 commit intodanmar:mainfrom
damorinCan:CWE474_ftell
Open

ftell() not consistent in C11#8360
damorinCan wants to merge 1 commit intodanmar:mainfrom
damorinCan:CWE474_ftell

Conversation

@damorinCan
Copy link

@sonarqubecloud
Copy link

@chrchr-github
Copy link
Collaborator

Thanks for your contribution.
As far as I can tell, this has nothing to do with Windows 11, but rather the C11 spec of ftell(), right? So the title of the PR should be adjusted.
Please add a test.

@damorinCan damorinCan changed the title ftell() have a different behavior in Windows 11 than before. ftell() not consistent in C11 Mar 21, 2026
@damorinCan
Copy link
Author

So the title of the PR should be adjusted.

Title now including reference to C11 and removed reference to Windows 11.

Please add a test.

I added a test in test/testio.cpp. Anything missing in it ?

@chrchr-github
Copy link
Collaborator

Please add a test.

I added a test in test/testio.cpp. Anything missing in it ?

Thanks, I must have missed that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants