Bug#317657: libglib2.0-0: Cannot parse integer value 'foo' for ----bar

Jukka Suomela Jukka Suomela <suo@iki.fi>, 317657@bugs.debian.org
Sun Jul 10 13:27:04 UTC 2005


Package: libglib2.0-0
Version: 2.6.5-1
Severity: minor

Hi,

The glib command line option parser (g_option_* functions) seems to
contain a minor bug in error messages.

In glib/goption.c, function parse_int, there is the following piece of
code:

      g_set_error (error,
                   G_OPTION_ERROR, G_OPTION_ERROR_BAD_VALUE,
                   _("Cannot parse integer value '%s' for --%s"),
                   arg, arg_name);

If the name of the long option is, say, "bar", arg_name will be
"--bar", and the error message reported to the user will look like:

    Cannot parse integer value 'foo' for ----bar

Changing --%s to %s would make the error message a bit more sensible.

Best regards,
Jukka Suomela

-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.11-1-686
Locale: LANG=fi_FI, LC_CTYPE=fi_FI (charmap=ISO-8859-1)

Versions of packages libglib2.0-0 depends on:
ii  libc6                       2.3.2.ds1-22 GNU C Library: Shared libraries an

Versions of packages libglib2.0-0 recommends:
pn  libglib2.0-data               <none>     (no description available)

-- no debconf information






More information about the Pkg-gnome-maintainers mailing list