[Koha-devel] binmode in pler scripts for utf-8 support

Joe Atzberger ohiocore at gmail.com
Mon Dec 15 16:47:43 CET 2008


Rick --

That is just one form that happens to be used for existing filehandles.  You
can also find similar code in "open" statements (see rebuild_zebra.pl) and
the same code in different forms like:
binmode(STDOUT,":utf8");

We should setting it (or something like it) where needed.

--Joe

On Sun, Dec 14, 2008 at 2:51 PM, Rick Welykochy <rick at praxis.com.au> wrote:

> Hi all,
>
> I ran across this bit of randomness today:
>
>    binmode STDOUT, ":utf8";
>
> It occurs in only three perl scripts in Koha:
>
> ./circ/ysearch.pl
> ./misc/sax_parser_test.pl
> ./reports/guided_reports.pl
>
> Should this binmode setting be executed in all of our perl scripts
> to provide correct utf-8 support?
>
> If not, why not?
>
> cheers
> rickw
>
> --
> _________________________________
> Rick Welykochy || Praxis Services<http://lists.koha.org/mailman/listinfo/koha-devel>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: </pipermail/koha-devel/attachments/20081215/846c9bcc/attachment-0003.htm>


More information about the Koha-devel mailing list