From kde-core-devel Fri Feb 11 23:23:16 2005 From: Thiago Macieira Date: Fri, 11 Feb 2005 23:23:16 +0000 To: kde-core-devel Subject: Re: [PATCH] win32 paths-related fixes Message-Id: <200502112123.16924.thiago.macieira () kdemail ! net> X-MARC-Message: https://marc.info/?l=kde-core-devel&m=110816418525160 MIME-Version: 1 Content-Type: multipart/mixed; boundary="--nextPart6927204.Lll5znQ5qo" --nextPart6927204.Lll5znQ5qo Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Jaroslaw Staniek wrote: > if ( !KURL::isRelativeURL( QString::fromLocal8Bit(urlArg) ) ) No. The filename encoding doesn't have to be the local 8-bit encoding. IMO it's more trouble than it's worth to do so, but it's a valid case=20 nonetheless. Use QFile::decodeName() and QFile::encodeName(). > return KURL(QString::fromLocal8Bit(urlArg)); // Argument is a URL > >in KCmdLineArgs::makeURL()? -- is QString::fromLocal8Bit(urlArg) needed > or replacing it with _urlArg is enough? =2D-=20 Thiago Macieira - thiago (AT) macieira (DOT) info PGP/GPG: 0x6EF45358; fingerprint: E067 918B B660 DBD1 105C 966C 33F5 F005 6EF4 5358 1. On frumscafte, hwonne time_t w=E6s n=E1ht, se scieppend =FEone circolwyr= de=20 wundorcr=E6ftl=EDge cennede and seo eor=F0e w=E6s idel and hit w=E6s g=F3d. --nextPart6927204.Lll5znQ5qo Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (GNU/Linux) iD8DBQBCDT5kM/XwBW70U1gRAlAtAJoDN1JIkp7lhClY0jIySFOA7RHfYgCgrQN6 JGvrS+bKNfyg0m49yJMMNlA= =nODE -----END PGP SIGNATURE----- --nextPart6927204.Lll5znQ5qo--