<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.kde.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugs.kde.org/"
          
          maintainer="sysadmin@kde.org"
>

    <bug>
          <bug_id>149102</bug_id>
          
          <creation_ts>2007-08-22 10:59:42 +0000</creation_ts>
          <short_desc>kpdf/kdirwatch fails on path with &apos;#&apos; in it</short_desc>
          <delta_ts>2007-08-23 08:13:15 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>10</classification_id>
          <classification>Unmaintained</classification>
          <product>kpdf</product>
          <component>general</component>
          <version>unspecified</version>
          <rep_platform>Gentoo Packages</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>NOR</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>0</everconfirmed>
          <reporter name="Matthias Raffelsieper">hoschiraffel</reporter>
          <assigned_to name="Albert Astals Cid">aacid</assigned_to>
          
          
          <cf_commitlink></cf_commitlink>
          <cf_versionfixedin></cf_versionfixedin>
          <cf_sentryurl></cf_sentryurl>
          <votes>0</votes>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>542052</commentid>
    <comment_count>0</comment_count>
    <who name="Matthias Raffelsieper">hoschiraffel</who>
    <bug_when>2007-08-22 10:59:43 +0000</bug_when>
    <thetext>Version:            (using KDE KDE 3.5.7)
Installed from:    Gentoo Packages

I have a pdf file in a path that has a pound sign &apos;#&apos; in it. kpdf will open the file just fine, but the watch file will hang. The console gives me

kpdf: WARNING: Unknown mimetype &apos;inode/directory&apos;.
kpdf: WARNING: KDirWatch: /home/matraf/Uni is a directory. Use addDir!


where the path to the file is /home/matraf/Uni/#cur/out.pdf, ie. it seems to be cut off at the position of the &apos;#&apos;-sign.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>542203</commentid>
    <comment_count>1</comment_count>
    <who name="Albert Astals Cid">aacid</who>
    <bug_when>2007-08-22 22:59:34 +0000</bug_when>
    <thetext>SVN commit 703564 by aacid:

Use fromPathOrURL so people with strange dirs with # in them still get watching working
BUGS: 149102


 M  +1 -1      part.cpp  


--- branches/KDE/3.5/kdegraphics/kpdf/part.cpp #703563:703564
@@ -612,7 +612,7 @@
     m_pageView-&gt;showText(i18n(&quot;Reloading the document...&quot;), 0);
   }
 
-  if (KParts::ReadOnlyPart::openURL(m_file))
+  if (KParts::ReadOnlyPart::openURL(KURL::fromPathOrURL(m_file)))
   {
     if (m_viewportDirty.pageNumber &gt;= (int)m_document-&gt;pages()) m_viewportDirty.pageNumber = (int)m_document-&gt;pages() - 1;
     m_document-&gt;setViewport(m_viewportDirty);
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>542227</commentid>
    <comment_count>2</comment_count>
    <who name="Matthias Raffelsieper">hoschiraffel</who>
    <bug_when>2007-08-23 08:13:14 +0000</bug_when>
    <thetext>Resolves the reported problem. Thanks for the fast response!</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>