<?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>91635</bug_id>
          
          <creation_ts>2004-10-19 01:01:27 +0000</creation_ts>
          <short_desc>files with &quot;?&quot; in the filename can&apos;t be opened</short_desc>
          <delta_ts>2004-11-14 03:13:58 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>10</classification_id>
          <classification>Unmaintained</classification>
          <product>khexedit</product>
          <component>general</component>
          <version>0.8.5</version>
          <rep_platform>unspecified</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="Andreas Pietzowski">andreas</reporter>
          <assigned_to name="Espen Sand">espensa</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>277677</commentid>
    <comment_count>0</comment_count>
    <who name="Andreas Pietzowski">andreas</who>
    <bug_when>2004-10-19 01:01:28 +0000</bug_when>
    <thetext>Version:           0.8.5 (using KDE 3.3.1, SuSE)
Compiler:          gcc version 3.3.3 (SuSE Linux)
OS:                Linux (i686) release 2.6.4-52-default

I wanted to open a file with a &quot;?&quot; in the filename. KHexEdit told me (by mistake) that this file doens&apos;t exist although I opened it with with rightclick in konqueror.

Should be an easy-to-resolve bug...

Nice app anyway - no such app under windows ;-)
Pietz</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>278456</commentid>
    <comment_count>1</comment_count>
    <who name="Friedrich W. H. Kossebau">kossebau</who>
    <bug_when>2004-10-21 01:13:27 +0000</bug_when>
    <thetext>&quot;?&quot; in filenames are not to be expected, I think, because the shell allows &quot;?&quot; to be used as regexp for any letter in a filename (like in &quot;ls files.?pp&quot;). &quot;?&quot; are also used for unknown char codes in a filename (happens when mounting filesystems with the wrong charset). Perhaps the file was created on a filesystem with iso-xxxx-15 but mounted with utf8 or viceversa?

Greetings 
Friedrich</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>278558</commentid>
    <comment_count>2</comment_count>
    <who name="Andreas Pietzowski">andreas</who>
    <bug_when>2004-10-21 14:07:54 +0000</bug_when>
    <thetext>IIRC I learned in school that you can use ANY character for any filename in a UNIX operating system. Also every application works with &quot;?&quot; but not KHexedit. Should be fixed. Really. It is in deed a valid character for a filename. The shell is just another application who has it&apos;s own rules. But you can also open a file in the shell with this command:

type my\ filename\ has\ a\ \? \inside.txt

or

type &apos;my filename has a ? inside.txt&apos;

If the shell can handle this, KHexedit should handle it also without any probs ;-)

Bye
Pietz</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>285627</commentid>
    <comment_count>3</comment_count>
    <who name="Friedrich W. H. Kossebau">kossebau</who>
    <bug_when>2004-11-14 03:13:58 +0000</bug_when>
    <thetext>CVS commit by kossebau: 

Backport from HEAD:
files with &quot;?&quot; and else in the filename can now be opened also when given as
app parameters

BUG:91635


  M +1 -1      khexedit.desktop   1.263.2.2
  M +2 -4      main.cc   1.21.2.1


--- kdeutils/khexedit/main.cc  #1.21:1.21.2.1
@@ -98,7 +98,5 @@ int main( int argc, char **argv )
     
     for(int i = 0; i &lt; args-&gt;count(); i++)
-    {
-       hexEdit-&gt;addStartupFile( QFile::decodeName(args-&gt;arg(i)) );
-    }
+       hexEdit-&gt;addStartupFile( args-&gt;url(i).url() );
 
     args-&gt;clear();

--- kdeutils/khexedit/khexedit.desktop  #1.263.2.1:1.263.2.2
@@ -67,5 +67,5 @@
 Name[ven]=U sengulusa ha KHex
 Name[zh_TW]=KHex編輯器
-Exec=khexedit -caption &quot;%c&quot; %i %m %f
+Exec=khexedit -caption &quot;%c&quot; %i %m %U
 TerminalOptions=
 Icon=khexedit


</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>