After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 72548 - Backslash in glib message should be escaped
Backslash in glib message should be escaped
Status: RESOLVED FIXED
Product: glib
Classification: Platform
Component: general
unspecified
Other other
: Normal normal
: ---
Assigned To: gtkdev
gtkdev
Depends on:
Blocks:
 
 
Reported: 2002-02-25 18:26 UTC by Christian Rose
Modified: 2004-12-22 21:47 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Christian Rose 2002-02-25 18:26:52 UTC
From glib/gshell.c:525:

        g_set_error (error,
                     G_SHELL_ERROR,
                     G_SHELL_ERROR_BAD_QUOTING,
                     _("Text ended just after a '\' character."
                       " (The text was '%s')"),
                     command_line);

I assume that was is meant by the message is that the text ended just after
a backslash character. In that case, the backslash should be escaped like this:

        g_set_error (error,
                     G_SHELL_ERROR,
                     G_SHELL_ERROR_BAD_QUOTING,
                     _("Text ended just after a '\\' character."
                       " (The text was '%s')"),
                     command_line);

As it is now, it is a problem with gettext translation because gettext will
(correctly) put this message in the catalog for translators to translate:

#: glib/gshell.c:528
#, c-format
msgid "Text ended just after a '' character. (The text was '%s')"
Comment 1 Owen Taylor 2002-02-25 21:34:44 UTC
Mon Feb 25 16:31:09 2002  Owen Taylor  <otaylor@redhat.com>

        * glib/gshell.c (tokenize_command_line): Fix quoting
        of \' sequence (#72548, Christian Rose)