What happens to fopen and posix open on a GCC compiler which uses EBCDIC coding for char const[] literals????

Liu Hao lh_mouse@126.com
Mon Dec 23 07:59:00 GMT 2019


在 2019/12/22 19:40, sotrdg sotrdg 写道:
> C++ 20 has this char8_t and u8string which is guarantee to be a utf-8 character string. Is it safe to just reinterpret cast char8_t const* pointer to char const*?? Clearly it is not a strict aliasing rule violation. However I am not sure whether I would get screwed by the C locale system.
> 
> 
> 

POSIX does not allow EBCDIC [1].

[1]
https://pubs.opengroup.org/onlinepubs/9699919799.2018edition/basedefs/V1_chap06.html

-- 
Best regards,
LH_Mouse

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: OpenPGP digital signature
URL: <https://gcc.gnu.org/pipermail/gcc-help/attachments/20191223/cb327267/attachment-0001.sig>


More information about the Gcc-help mailing list