Package: gettext
Version: 0.17-6
Severity: normal
File: /usr/bin/xgettext

A file foo.pl containing

    print gettext('hello');
    $foo // 'undef';
    print gettext('world');

processed as

    xgettext --output=- --language=Perl foo.pl

prints only the first message

    #: foo.pl:1
    msgid "hello"
    msgstr ""

where I hoped it would give the "world" one too.

It might be related to the // defined-or operator, new in perl 5.10.  If
it's instead a plain || or similar then the "world" string is printed.


-- System Information:
Debian Release: squeeze/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: i386 (i586)

Kernel: Linux 2.6.26-1-486
Locale: LANG=en_AU, LC_CTYPE=en_AU (charmap=ISO-8859-1)
Shell: /bin/sh linked to /bin/dash

Versions of packages gettext depends on:
ii  gettext-base              0.17-6         GNU Internationalization utilities
ii  libc6                     2.9-4          GNU C Library: Shared libraries
ii  libcroco3                 0.6.1-2        a generic Cascading Style Sheet (C
ii  libglib2.0-0              2.18.4-2       The GLib library of C routines
ii  libgomp1                  4.3.3-5        GCC OpenMP (GOMP) support library
ii  libncurses5               5.7+20090228-1 shared libraries for terminal hand

Versions of packages gettext recommends:
ii  curl                        7.18.2-8.1   Get a file from an HTTP, HTTPS or 
ii  lynx                        2.8.7dev13-1 Text-mode WWW Browser (transitiona
ii  wget                        1.11.4-2     retrieves files from the web

Versions of packages gettext suggests:
ii  cvs                         1:1.12.13-12 Concurrent Versions System
pn  gettext-doc                 <none>       (no description available)

-- no debconf information



-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to