4 ms·
Cool but that was over 40 years ago. Who cares, and why hasn’t it been improved since then?
by orf 3y ago
Cool but that was over 40 years ago. Who cares, and why hasn’t it been improved since then?
- IshKebab 3y agoI guess anyone that develops in C is happy living in the 80s amongst the footguns. Anyone who isn't has moved on to other languages where it has been improved.
- pvh 3y agoTo the former, curious people with an interest in how and why the world came to be as it is. To the latter, obviously "it" has improved, but ecosystem effects make certain changes very difficult and expensive to coordinate and what we see here is the scars from that process. Everything you see in the world grew out of things that came before, and was made by fallible people working with limited time, energy, and perspective. Honestly, I'm a bit surprised someone with a three letter handle wouldn't already recognize this. Surely you have been around here for a while.
- JdeBP 3y agoIt actually has been improved. See discssion of isspace_l() elsewhere on this page.
- nwellnhof 3y agoUnfortunately, not all locale-dependent functions have an *_l version, at least on some platforms. glibc doesn't have sprintf_l, for example, unlike BSD and MSVCRT.
- JdeBP 3y agoLuckily, sprintf() is irrelevant to the headlined case, that involves isspace_l(), which is in the BSD, GNU, and even musl C libraries.