On Wed, 1 Feb 2006, Peter J.Holzer wrote:

I accidentally restarted qpsmtpd-forkserver while having
the following locale-related environment variables set:

   LC_COLLATE=POSIX
   LANG=en_US.UTF-8
   PERL_UNICODE=SDAL
...
A real fix would probably be to explicitely call binmode ":raw" on all
filehandles, which need to read/write octets, not characters (I.e., at
least all the sockets, but probably also temporary files, pipes, etc.
(Sounds like a lot of work).

Another fix is to use a service supervisor, such as daemontools or runit, so that the environment is always consistent. OK, it's not a fix, but it means that no fix is required. And it's not a lot of work.

Reply via email to