Re: [Mingw-w64-public] [PATCH] headers: Update the threadlocinfo struct for ucrt

2018-11-02 Thread Martin Storsjö
On Fri, 2 Nov 2018, Mateusz wrote: W dniu 18.10.2018 o 19:51, Martin Storsjö pisze: Signed-off-by: Martin Storsjö --- This fixes a testcase like this: #include #include #include int main(int argc, char const *argv[]) { _locale_t loc = _create_locale(LC_ALL,

Re: [Mingw-w64-public] [PATCH] headers: Update the threadlocinfo struct for ucrt

2018-11-02 Thread Mateusz
W dniu 18.10.2018 o 19:51, Martin Storsjö pisze: > Signed-off-by: Martin Storsjö > --- > This fixes a testcase like this: > > #include > #include > #include > > int main(int argc, char const *argv[]) > { > _locale_t loc = _create_locale(LC_ALL, "C"); > int

Re: [Mingw-w64-public] [PATCH] headers: Update the threadlocinfo struct for ucrt

2018-10-18 Thread Jacek Caban
On 10/18/2018 07:51 PM, Martin Storsjö wrote: > Signed-off-by: Martin Storsjö > --- > This fixes a testcase like this: > > #include > #include > #include > > int main(int argc, char const *argv[]) > { > _locale_t loc = _create_locale(LC_ALL, "C"); > int ret

[Mingw-w64-public] [PATCH] headers: Update the threadlocinfo struct for ucrt

2018-10-18 Thread Martin Storsjö
Signed-off-by: Martin Storsjö --- This fixes a testcase like this: #include #include #include int main(int argc, char const *argv[]) { _locale_t loc = _create_locale(LC_ALL, "C"); int ret = _isdigit_l('3', loc); printf ("%d\n", ret); return

Re: [Mingw-w64-public] [PATCH] headers: Update the threadlocinfo struct for ucrt

2018-10-18 Thread Jacek Caban
Hi Martin, On 10/18/2018 09:58 AM, Martin Storsjö wrote: > This keeps the old names for the few struct fields that are left, > to avoid having to change code in ctype.h which references it. > > Alternatively, we could switch consistently to the new names in ctype.h, > and add "#define

[Mingw-w64-public] [PATCH] headers: Update the threadlocinfo struct for ucrt

2018-10-18 Thread Martin Storsjö
This keeps the old names for the few struct fields that are left, to avoid having to change code in ctype.h which references it. Alternatively, we could switch consistently to the new names in ctype.h, and add "#define _locale_mb_cur_max mb_cur_max" for the non-ucrt case? That's a much larger and