Nice documentation about porting from GTK to Qt

Thiago Macieira thiago at macieira.org
Wed Jun 5 10:58:23 PDT 2013


On quarta-feira, 5 de junho de 2013 10.49.27, Thiago Macieira wrote:
> On quarta-feira, 5 de junho de 2013 13.24.01, Tomaz Canabrava wrote:
> > People,
> > 
> > it seems that the LXDE guys are experimenting changing from GTK to Qt,
> > and they created a Wiki about porting steps and functionality.
> > this is a must read if you work on a GTK based software and is
> > changing to Qt, lots of nice comparisson stuff.
> > 
> > http://wiki.lxde.org/en/Migrate_from_GTK%2B_to_Qt
> 
> I get redirected to http://wiki.lxde.org/en/Migrate_from_GTK_to_Qt and the
> text on that page is:
> 
> "There is currently no text in this page. You can search for this page title
> in other pages, or search the related logs."

Looks like a bug with mediawiki, PHP or lighttpd:

$ curl -s -I http://wiki.lxde.org/en/Migrate_from_GTK+_to_Qt | sed -n 
'1p;/Location/p'
HTTP/1.0 301 Moved Permanently
Location: http://wiki.lxde.org/en/Migrate_from_GTK_to_Qt

$ curl -s -I http://wiki.lxde.org/en/Migrate_from_GTK%2B_to_Qt | sed -n 
'1p;/Location/p'
HTTP/1.0 200 OK

%2B in that position in the URL (path) is equivalent to a plus sign, but the 
web server is not serving the same page. A URL path is composed of "pchar", 
which include the plus sign. That means a plus sign is allowed to appear in a 
path component. The web server *should* reply with the same contents.

You could argue that a URL container should not normalise unless asked to. But 
that's not how QUrl works -- it *always* normalises. In the path of a URL, %2B 
and the plus sign are equivalent (not in the query).

-- 
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
   Software Architect - Intel Open Source Technology Center
      PGP/GPG: 0x6EF45358; fingerprint:
      E067 918B B660 DBD1 105C  966C 33F5 F005 6EF4 5358
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 190 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.hohndel.org/pipermail/subsurface/attachments/20130605/a5e878c6/attachment.sig>


More information about the subsurface mailing list