btowc problem

Eli Zaretskii <eliz-mXXj517/[email protected]> Mon, 29 Jun 2020 21:01:22 +0300
Newsgroups gmane.comp.gnu.mingw.user
Message-ID <[email protected]>
I have a weird problem with MinGW runtime 5.3.1: GDB I've built
doesn't run on Windows XP, popping up an error message about btowc.
Disassembling a GDB function that calls btowc, I see that it actually
calls __msvcrt_btowc.  However, wchar.h seems to say that this is what
should indeed happen:

  /* No explicit ISO-C99 compatibility has been requested; map calls
   * to these functions to delegate to any MSVCRT.DLL implementations
   * which may be available, or to fall back to the MinGW replacement
   * implementations, when necessary.
   */
  # define __mingw_redirect(NAME)  __msvcrt_##NAME

>From this I understand that __msvcrt_btowc is supposed to call the MS
implementation in MSVCRT.DLL when that is available, and otherwise
fall back on libmingwex.  Why does this not happen?  Moreover, even if
I replace the call to btowc by an explicit call to __mingw_btowc, GDB
still refuses to run with the same error message.  What am I missing?

TIA

_______________________________________________
MinGW-Users mailing list
[email protected]

This list observes the Etiquette found at
http://www.mingw.org/Mailing_Lists.
We ask that you be polite and do the same.  Disregard for the list etiquette may cause your account to be moderated.

_______________________________________________
You may change your MinGW Account Options or unsubscribe at:
https://lists.osdn.me/mailman/listinfo/mingw-users
Also: mailto:[email protected]?subject=unsubscribe