Thread (10 messages) flat view 10 messages, 4 authors, 2016-06-15

Re: daemon.c broken on OpenBSD

From: Morten Welinder <hidden>
Date: 2016-06-15 22:42:09

Locale issues:

* Environment strings have unspecified encoding.
* File names ditto.  (Which matters when they get printed together with other
  strings.)
* gecos information ditto.

If, and if only, you[*] call setlocale:

* ctype stuff.
* strtod, printf %[efg]
* Regexps

(Integer parsing and printing seems to be safe in pratice if not in theory.)

If you call system() you also need to watch out for things like Gnu sort
being locale sensitive.

Morten


[*] That would be not just you, but also all the yous behind all the
     libraries you link.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help