Subject: | Use of tied file handles breaks code that relies on PerlIO |
Date: | Thu, 10 Oct 2013 11:42:00 +0100 |
To: | bug-FCGI [...] rt.cpan.org |
From: | Alastair Houghton <alastair [...] alastairs-place.net> |
FCGI’s FCGI::Stream file handle code breaks any code that relies on PerlIO for character encoding. (The popular Open Source ticket system OTRS is one such program that is affected by this problem.)
The odd behaviour that results is quite hard to diagnose, particularly for a non-Perl programmer, as it looks like everything should be working but e.g. character output arrives at the web server in the wrong encoding.
A fix would be to migrate FCGI::Stream to PerlIO, which would mean that calls to binmode() would work as expected. Unfortunately I am not a sufficiently experienced Perl programmer to be able to do that myself.
Kind regards,
Alastair.
--
http://alastairs-place.net