public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libstdc++/107930] New: wchar_t may not be the native character type for windows
@ 2022-11-30 4:03 unlvsur at live dot com
2022-11-30 10:45 ` [Bug libstdc++/107930] " redi at gcc dot gnu.org
0 siblings, 1 reply; 2+ messages in thread
From: unlvsur at live dot com @ 2022-11-30 4:03 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107930
Bug ID: 107930
Summary: wchar_t may not be the native character type for
windows
Product: gcc
Version: 13.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: libstdc++
Assignee: unassigned at gcc dot gnu.org
Reporter: unlvsur at live dot com
Target Milestone: ---
Windows APIs have two modes. ANSI 9x and Wide NT. It is still possible the
operating system character type is char, not wchar_t. Plus nobody guarantees
the sizeof(wchar_t) == 2 on windows.
I suggest adding a toggle to set the toggle here on whether A apis or W apis
are called when building with cross-toolchain.
WINVER, _WIN32_WINDOWS and _WIN32_WINNT determine what mode to use. However,
libstdc++ does not provide options to set them.
enum class win32_family
{
ansi_9x,
wide_nt,
#ifdef _WIN32_WINDOWS
native = ansi_9x
#else
native = wide_nt
#endif
};
https://github.com/cppfastio/fast_io/blob/f2dc1472e1d0c1e15687b4b94bf5d6221f1099d2/include/fast_io_hosted/api_encoding_converter/impl.h#L10
^ permalink raw reply [flat|nested] 2+ messages in thread
* [Bug libstdc++/107930] wchar_t may not be the native character type for windows
2022-11-30 4:03 [Bug libstdc++/107930] New: wchar_t may not be the native character type for windows unlvsur at live dot com
@ 2022-11-30 10:45 ` redi at gcc dot gnu.org
0 siblings, 0 replies; 2+ messages in thread
From: redi at gcc dot gnu.org @ 2022-11-30 10:45 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107930
Jonathan Wakely <redi at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution|--- |WONTFIX
--- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> ---
No, we are not going to support legacy modes for Windows 98.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2022-11-30 10:45 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-11-30 4:03 [Bug libstdc++/107930] New: wchar_t may not be the native character type for windows unlvsur at live dot com
2022-11-30 10:45 ` [Bug libstdc++/107930] " redi at gcc dot gnu.org
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).