Re: [Mingw-w64-public] [gcc-13.0.1] weird issue with 32-bit setjmp.h

2023-04-17 Thread sisyphus
On Mon, Apr 17, 2023 at 8:56 PM Martin Storsjö wrote: > On Mon, 17 Apr 2023, sisyphus wrote: > > > On Mon, Apr 17, 2023 at 1:02 AM Martin Storsjö wrote: > [snip] > > As you can see, the aim is, for 32-bit builds only, to: > > # define setjmp(x) _setjmp(x) > > > > and, while that works fine with

Re: [Mingw-w64-public] [PATCH] Re-implement (broken) mbrtoc16

2023-04-17 Thread Costas Argyris
Repeating email with patches renamed to .txt extension. On Sun, 16 Apr 2023 at 23:51, Costas Argyris wrote: > Fix the mbrtoc16 function reported here: > > https://sourceforge.net/p/mingw-w64/bugs/957/ > > In contrast to mbrtoc32 which was only slightly misbehaving (now fixed), > mbrtoc16 is enti

[Mingw-w64-public] [PATCH] Re-implement (broken) mbrtoc16

2023-04-17 Thread Costas Argyris
Fix the mbrtoc16 function reported here: https://sourceforge.net/p/mingw-w64/bugs/957/ In contrast to mbrtoc32 which was only slightly misbehaving (now fixed), mbrtoc16 is entirely broken, returning the UTF-8 bytes unchanged. The proposed implementation in this patch has mbrtoc16 assume UTF-8 in

Re: [Mingw-w64-public] [gcc-13.0.1] weird issue with 32-bit setjmp.h

2023-04-17 Thread Martin Storsjö
On Mon, 17 Apr 2023, sisyphus wrote: On Mon, Apr 17, 2023 at 1:02 AM Martin Storsjö wrote: mingw-w64 never defined USE_NO_MINGW_SETJMP_TWO_ARGS. Do the perl sources define it? Yes - and for quite a long time. (But only for 32-bit builds of course.) https://github.com/Perl/perl5/blob/blead