frantisek holop said:
> as you yourself stated, '%' is munched up only on dwb: pages,
> not "normal" ones.  looks like two codepaths for processing css?

Dwb does not do processing CSS at all - webkit does it.

Dwb uses these HTML files as format definitions in
g_string_append_printf() function, which ultimately feeds it to
vasprintf(3).  That is: vasprintf(3) is fed with format string
containing "%;" sequences, which are invalid format specifications.
According to C standard behavior in such cases is undefined; OpenBSD's 
vasprintf(3) just strips '%' chars from such format specifications.

It is possible that dwb developers don't fix this bug because:

 1. glibc's vasprintf() simply ignores invalid format specifications so
    that on Linux everything is rendered properly and
 2. it is easier to test these templates when '%'s are not escaped.  (No
    substitution needed, only concatenation.

Thus dwb developers may have chosen comfort over correctness.  If this
theory describes the situation accurately (and lack of developers'
comments on year-old bug suggests so), then this bug is unlikely to be
closed in near future.

-- 
Dmitrij D. Czarkoff

Reply via email to