[Xfce-bugs] [Bug 12715] New: xfce_dialog_show_error() fails to show text containing ampersand

bugzilla-daemon at xfce.org bugzilla-daemon at xfce.org
Tue Jul 19 16:53:17 CEST 2016


https://bugzilla.xfce.org/show_bug.cgi?id=12715

            Bug ID: 12715
           Summary: xfce_dialog_show_error() fails to show text containing
                    ampersand
    Classification: Xfce
           Product: Libxfce4ui
           Version: 4.13.0
          Hardware: PC (x86_64)
                OS: Linux
            Status: NEW
          Severity: minor
          Priority: Medium
         Component: General
          Assignee: nick at xfce.org
          Reporter: f2404 at yandex.ru
                CC: hjudt at xfce.org, xfce-bugs at xfce.org
  Target Milestone: 4.14

xfce_dialog_show_error() does not show strings containing ampersand chars:

Gtk-WARNING **: Failed to set text '<span weight='bold' size='large'>Failed to
open the URL 'news:?xt=13415&amv'</span>' from markup due to error parsing
markup: Error on line 1: Entity did not end with a semicolon; most likely you
used an ampersand character without intending to start an entity - escape
ampersand as &

The solution would be either to replace ampersand with "&" within
xfce_dialog_show_error(), or the caller should do this.
The problem with the second option is that C library does not provide a
function to replace string char(s) with other chars; so please consider the
first option.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the Xfce-bugs mailing list