|
From: | Guido Flohr |
Subject: | Re: Bug#386912: errors in the Perl parser of xgettext: invalid variable interpolation at "$" |
Date: | Tue, 12 Sep 2006 16:20:12 +0200 |
User-agent: | Thunderbird 1.5.0.5 (X11/20060802) |
Hi, Bruno Haible wrote:
Hello, Nicolas François / Nekral wrote:dpkg currently fails to update its POTs which contain strings extracted from Perl scripts. The attached Perl script is a minimal example to reproduce this bug. It also gives some ideas on how to fix the perl scripts to bypass the bug. xgettext -k_ test.pl test.pl:10: invalid variable interpolation at "$"
For the records, the test case at line 10 was: printf _("%s\n"), "$a";It was parsed alright in xgettext 0.14.5. Version 0.15.0 produces the error here. Can you double-check the changes between 0.14.5 and 0.15 to the Perl parser backend? It looks like something has been broken along the way between 0.14.5 and 0.15.
I tested with the two versions compiled by the Gentoo tools on my system, but I would be very surprised, if the behavior was not reproducable with the vanilla sources.
Regards, GuidoP.S.: BTW, using a single underscore as the function alias for gettext in Perl is often a bad idea, since functions whose names consist of a single interpunction character are automatically global in Perl, i.e. the function is visible in all namespaces, and can be re-defined in all namespaces.
-- Imperia AG, Development Leyboldstr. 10 - D-50354 Hürth - http://www.imperia.net/
[Prev in Thread] | Current Thread | [Next in Thread] |