From kde-devel Sun Aug 03 23:10:43 2003 From: "Petter E. Stokke" Date: Sun, 03 Aug 2003 23:10:43 +0000 To: kde-devel Subject: Re: Lower case URLs? X-MARC-Message: https://marc.info/?l=kde-devel&m=105995255511149 MIME-Version: 1 Content-Type: multipart/mixed; boundary="--===============36925901013252993==" --===============36925901013252993== Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-oEt+1f5GCCJffAvbUVB5" --=-oEt+1f5GCCJffAvbUVB5 Content-Type: text/plain Content-Transfer-Encoding: quoted-printable On Sun, 2003-08-03 at 21:34, Thiago Macieira wrote: > >The reason I brought it up, though, is that I'm writing a kioslave for > >accessing file systems defined by symbolic names in a database, where > >the host portion of the URL refers to this name, which is case > >sensitive. This works just fine in KDE 3.1, but obviously breaks with > >the new KURL behaviour in CVS. >=20 > For your application, use a hostname-like host part. Better do it right t= he=20 > first time. If your application doesn't have a host, use localhost or one= =20 > slash only. I solved it by just using one slash and providing the list of servers as a directory. It actually came out more useful that way, even if it's semantically incorrect. > From the other mail: > >How about this: the .protocol control files in $KDEDIR/share/services > >could be extended to include a directive specifying that the given > >protocol uses non-standard URLs, which KURL would obey and not attempt > >to process further. It's a bit like my previous suggestion of hardcoding > >a set of protocols that use DNS host names, only a little more sane and > >flexible. I'd be happy to come up with a patch to implement it if it > >doesn't sound too unreasonable. >=20 > That sounds too much for such a low-level class as KURL, though it might = be=20 > needed... It's the cleanest way I can think of, at least. I'll try to implement it and see how much it breaks and what the performance impact is. Unless someone with more intimate knowledge of KURL than I feels like giving it a go, that is. :) --=20 Petter E. Stokke http://www.gibreel.net/ PGP key: http://www.gibreel.net/key.asc Fingerprint: 4FF3 12BD 692A 0FFF 984F 78DA 4776 81FB 1906 3A9F --=-oEt+1f5GCCJffAvbUVB5 Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.2 (GNU/Linux) iD8DBQA/LZZyR3aB+xkGOp8RAje+AJ4rZbl3AW1lLhHDQJ5m5jmXDpJDDQCfdefv BWLxEtH9QcjNDEbSTCJXGoc= =tVTS -----END PGP SIGNATURE----- --=-oEt+1f5GCCJffAvbUVB5-- --===============36925901013252993== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline >> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe << --===============36925901013252993==--