Remix.run Logo
▲ Good4boothee an hour ago

> did musl really feel the need to accommodate bad implementations like this

I don't know about this specific case but in general? Yes, totally. No one is going to fix all existing software that depends on libs behaving exactly as glibc, you have to accept some trade-offs. Either your new implementation stops being perfectly simple and clean, or no one uses it.

▲Palomides 7 minutes ago | parent [-]

it's not "glibc behavior", returning null on error is in the spec