Jérémie Courrèges-Anglas said:
> > IIRC this problem does not manifest itself with glibc.
> 
> Does that mean that those settings are passed directly to printf-like
> functions?

Yes.  Relevant part of source code is this fragment of "src/html.c":

77    if (path && headpath) 
78    {
79        /* load head */
80        g_file_get_contents(headpath, &filecontent, NULL, NULL);
81        g_string_append_printf(content, filecontent, t->title);
82        g_free(filecontent);
83        /* load content */
84        g_file_get_contents(path, &filecontent, NULL, NULL);
85        if (panel) 
86            g_string_append_printf(content, filecontent, panel);
87
88        
webkit_web_frame_load_alternate_string(webkit_web_view_get_main_frame(wv), 
content->str, current_uri, current_uri);
89        g_string_free(content, true);
90        g_free(filecontent);
91        ret = STATUS_OK;
92    }

On lines 81 and 86 the contents of these HTML templates is passed to
g_string_append_printf() as templates.  Apparently our printf functions
strip '%' charecters when encounter invalid conversion specifications,
while GNU counterparts leave them alone.

-- 
Dmitrij D. Czarkoff

Reply via email to