Skip Menu |

This queue is for tickets about the TeX-Hyphen CPAN distribution.

Report information
The Basics
Id: 82513
Status: resolved
Priority: 0/
Queue: TeX-Hyphen

People
Owner: Nobody in particular
Requestors: BOBKARE [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: (no value)
Fixed in: 1.16



Subject: filehandle is not closed
After reading patterns from a file the filehandle is never closed. The code that should do that is "close FILE if not defined $file;", which seems to have one negation too many. This bug means hyphenation won't work if you instantiate two objects in the same program: my $hyp1 = TeX::Hyphen->new('file.tex'); my $res1 = $hyp1->visualize('representative'); my $hyp2 = TeX::Hyphen->new('file.tex'); my $res2 = $hyp2->visualize('representative'); die "$res2 should be equal to $res1" unless $res1 eq $res2;
On Sun, 6 Jan 2013 12:51:59 GMT, BOBKARE wrote: Show quoted text
> After reading patterns from a file the filehandle is never closed. The > code that should do that is "close FILE if not defined $file;", which > seems to have one negation too many.
Fixed in 1.16. Thank you. Jan