diff --git a/kdegraphics-4.3.2-kde#207461.patch b/kdegraphics-4.3.2-kde#207461.patch new file mode 100644 index 0000000..eb1216c --- /dev/null +++ b/kdegraphics-4.3.2-kde#207461.patch @@ -0,0 +1,15 @@ +--- branches/KDE/4.3/kdegraphics/okular/shell/shell.cpp 2009/07/06 18:58:27 992398 ++++ branches/KDE/4.3/kdegraphics/okular/shell/shell.cpp 2009/10/08 22:20:11 1032945 +@@ -58,7 +58,12 @@ + if any. + */ + QString arg = m_args->arg(argIndex); ++ const QString origArg = arg; + arg.replace(QRegExp("^file:/{1,3}"), "/"); ++ if (arg != origArg) ++ { ++ arg = QString::fromUtf8(QByteArray::fromPercentEncoding(arg.toUtf8())); ++ } + KUrl url = KCmdLineArgs::makeURL(arg.toUtf8()); + int sharpPos = -1; + if (!url.isLocalFile() || !QFile::exists(url.toLocalFile())) diff --git a/kdegraphics.spec b/kdegraphics.spec index ac6818f..0265136 100644 --- a/kdegraphics.spec +++ b/kdegraphics.spec @@ -8,7 +8,7 @@ Summary: K Desktop Environment - Graphics Applications Epoch: 7 Version: 4.3.2 -Release: 2%{?dist} +Release: 3%{?dist} Name: kdegraphics #Obsoletes: kdegraphics4 < %{version}-%{release} @@ -21,6 +21,8 @@ Source0: ftp://ftp.kde.org/pub/kde/stable/%{version}/src/kdegraphics-%{ve BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) ## upstream patches +# http://bugs.kde.org/207461 +Patch100: kdegraphics-4.3.2-kde#207461.patch %if 0%{?fedora} BuildRequires: chmlib-devel @@ -99,6 +101,8 @@ Summary: A kioslave for displaying WinHelp files %prep %setup -q -n kdegraphics-%{version} +%patch100 -p4 -b kde#207461 + %build mkdir -p %{_target_platform} @@ -233,6 +237,9 @@ fi %changelog +* Thu Oct 08 2009 Rex Dieter - 4.3.2-3 +- okular does not handle escaped URL correctly (kde#207461) + * Thu Oct 08 2009 Than Ngo - 4.3.2-2 - rhel cleanup