https://bugs.kde.org/show_bug.cgi?id=401553

            Bug ID: 401553
           Summary: Can't "View Document" with question mark in filename
           Product: KBibTeX
           Version: 0.8.1
          Platform: Gentoo Packages
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: General
          Assignee: fisc...@unix-ag.uni-kl.de
          Reporter: glyphi...@gmail.com
  Target Milestone: ---

SUMMARY

When you attempt to "View Document" for an entry with a localfile field
containing a question mark ("?"), the file is not displayed. Instead, a "Choose
Application" window pops up, asking you to "Select the program you want to use
to open the file:" It then prints the filename, up to but not including the
question mark.

Viewing the Source tab, the localfile field is being saved correctly (e.g.
"localfile = {test?.txt}"). So presumably the "?" character just needs to be
escaped on "View Document".

STEPS TO REPRODUCE

1. Create a new entry, or edit an existing one.
2. On the External tab, "Add file" and select a file with a "?" in it.
3. Save the entry and attempt to "View Document".

OBSERVED RESULT

Linked document file is not loaded; instead, a KDE "Choose Application" window
pops up, listing an incorrect filename without an extension (i.e., the filename
up to, but not including, the question mark).

EXPECTED RESULT

Linked document file is loaded by the appropriate program (KDE default).

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: 
KDE Plasma Version: 5.50.0
KDE Frameworks Version: 5.50.0
Qt Version: 5.11.1

ADDITIONAL INFORMATION

There may be issues with other characters not being escaped correctly. For
example, see bug 185433 in kframeworks-kio -- since 2009, all KDE Save As
dialogs fail to escape double quotation marks. For example, entering the
filename

a "test" file.txt

instead saves the file to

"test"

No other complaints. Thanks for the work on KBibTeX -- everything else works
great.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to