Re: GCC9 bug on ppc64le ? or why just fail in ppc64le rawhide?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



* Tom Hughes:

> On 26/02/2019 19:42, Sérgio Basto wrote:
>
>> Is stdio.h that defines EOF as -1 , so if we what work with files and
>> use EOF character,  we need use signed chars, though .
>
> No, you need to use int. The EOF value is deliberately outside the
> range of character values so that EOF is not a valid character!

EOF is a valid character, 'ÿ', in the Latin-1 encoding on x86 and
various other architectures.  On those architectures, EOF and 'ÿ' have
the same type and value as far as the C language is concerned.  (In C++,
character literals have type char, so the types are different.)

Thanks,
Florian
_______________________________________________
devel mailing list -- devel@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to devel-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/devel@xxxxxxxxxxxxxxxxxxxxxxx




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Users]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]

  Powered by Linux