News for hackers. Stuff that matters.
Re:Tell HN: C Experts Panel – Ask us anything about C by eqvinox on Tuesday April 14, 2020 @10:15AM (#22866231)
I haven't read most of that rant, but a thread-local setlocale() would be a godsend. Not sure if that's ISO C or POSIX though.
Re:Tell HN: C Experts Panel – Ask us anything about C by wahern on Tuesday April 14, 2020 @06:02PM (#22872040)
POSIX has added _l variants taking a locale_t argument to all the relevant string functions. I can see how per-thread state would be convenient, but it's not a comprehensive solution. With the _l variants you can write your own wrappers that pass a per-thread locale_t object.
Re:Tell HN: C Experts Panel – Ask us anything about C by EdSchouten on Thursday April 23, 2020 @04:07PM (#22960595)
That's uselocale().