Skip Menu |

This queue is for tickets about the Term-Size CPAN distribution.

Report information
The Basics
Id: 38594
Status: resolved
Priority: 0/
Queue: Term-Size

Owner: Nobody in particular
Requestors: user42 [...]

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: 0.208-TRIAL

Subject: please use "PerlIO*" so as to cooperate with layers
Date: Wed, 20 Aug 2008 11:24:01 +1000
To: bug-term-size [...]
From: Kevin Ryde <user42 [...]>
Download (untitled) / with headers
text/plain 689b
In the debian perl 5.10.0 the use of FILE* in the Term::Size xsubs does some bad stuff to perlio layers. In particular if you try to set for direct :utf8 output that flag ends up turned off by Term::Size::chars(). Eg. use strict; use warnings; use Term::Size; binmode STDOUT, ':utf8' or die; print "\x{263A}\n"; Term::Size::chars(\*STDOUT); print "\x{263A}\n"; => Wide character in print at line 7 I get some joy from the change below. I think it doesn't lose any portability, since if you believe what you read "PerlIO*" pointer and funcs go right back to 5.003 and are simply aliases for FILE* until the layers in 5.7.3 or 5.8.3 or whenever.
Download Size.xs.perlio.diff
text/x-diff 767b

Message body is not shown because sender requested not to inline it.

Fixed since 0.208 trial release. Thanks!

This service is sponsored and maintained by Best Practical Solutions and runs on infrastructure.

Please report any issues with to