From kde-commits Tue Dec 10 17:24:40 2002 From: David Faure Date: Tue, 10 Dec 2002 17:24:40 +0000 To: kde-commits Subject: Re: koffice/kpresenter X-MARC-Message: https://marc.info/?l=kde-commits&m=103954118910569 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Tuesday 10 December 2002 18:06, Nicolas Goutte wrote: > + KURL srcurl ( locate( "slideshow", filename, KPresenterFactory::global() ) ); > + KURL desturl ( path + "/pics/" + filename ); Creating a URL from a path can only be done with KURL::setPath(). Doing it like the above breaks on non-latin1 systems. Suggested code: KURL srcurl; srcurl.setPath( locate( "slideshow", filename, KPresenterFactory::global() ) ); KURL desturl; desturl.setPath( path + "/pics/" + filename ); - -- David FAURE, david@mandrakesoft.com, faure@kde.org http://people.mandrakesoft.com/~david/ Contributing to: http://www.konqueror.org/, http://www.koffice.org/ Get the latest KOffice - http://download.kde.org/stable/koffice-1.2/ -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.7 (GNU/Linux) iD8DBQE99iNY72KcVAmwbhARAq61AJ0RPFvGi4zHnAL/c65X7H+9lCh+zACfaTkC YySymnfTnh33ztDyutOYEXI= =CyNN -----END PGP SIGNATURE-----