Bug 158820 - sys-devel/gettext-0.15 - parser bug in Perl backend to xgettext
Bug#: 158820 Product:  Gentoo Linux Version: unspecified Platform: All
OS/Version: Linux Status: RESOLVED Severity: major Priority: P2
Resolution: FIXED Assigned To: base-system@gentoo.org Reported By: guido@imperia.net
Component: Applications
URL: 
Summary: sys-devel/gettext-0.15 - parser bug in Perl backend to xgettext
Keywords:  
Status Whiteboard: 
Opened: 2006-12-22 03:48 0000
Description:   Opened: 2006-12-22 03:48 0000
GNU gettext 0.15 introduced a bug in the Perl backend to xgettext.  To
reproduce create a sample Perl file test.pl:

$cat test.pl
#! /usr/bin/perl

sub __ { shift }
print gettext ("Dimensions: "), "$width x $height\n";
__END__
$ /usr/bin/xgettext test.pl
test.pl:4: invalid variable interpolation at "$"

xgettext fails here, although there is no illegal variable interpolation.

------- Comment #1 From Guido Flohr 2006-12-22 03:49:55 0000 -------
Created an attachment (id=104567) [details]
Fix Perl parser in xgettext

The patch is already applied upstream in GNU gettext 0.16.1 and fixes the
problem with the "illegal" variable interpolation.

------- Comment #2 From SpanKY 2006-12-29 16:58:52 0000 -------
easier to version bump then backport

1.16.1 in portage