-
Notifications
You must be signed in to change notification settings - Fork 48
Closed
Labels
Description
By the way, looks like this is not 100%-correct
strerror_rresult check. Thestrerror_rLinux manpage says, that starting from glibc 2.13 it returns (positive) errno as a result instead of returning-1and settingerrno. The corresponding manpage in FreeBSD also specifies0,EINVAL, andERANGEas only possible return values.
https://linux.die.net/man/3/strerror_r
Thinking further, the fact that a Display impl (which most people assume is non–side-effecting) can change global state is kind of surprising. We'll need to document that at least. Not sure what else we should do.
Reactions are currently unavailable