Issue 127589 - Wrong path suggested at "save as" when original path contains non-ASCII characters
Summary: Wrong path suggested at "save as" when original path contains non-ASCII chara...
Status: UNCONFIRMED
Alias: None
Product: General
Classification: Code
Component: ui (show other issues)
Version: 4.1.4
Hardware: All Windows 7
: P5 (lowest) Normal (vote)
Target Milestone: ---
Assignee: AOO issues mailing list
QA Contact:
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-11-07 15:45 UTC by Tilmann Reh
Modified: 2019-03-08 15:51 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Tilmann Reh 2017-11-07 15:45:06 UTC
When an OO document file that is stored at a path that contains non-ASCII characters, is opened from a shell (Windows Explorer, Total Commander etc.), a following "save as" operation suggests a wrong path. Instead of the path where the file was opened from, the path of the last used file open or save dialog is offered.

If the file is opened from within OO using the file open dialog, this error doesn't show - probably because the last recently used dialog already used exactly the right folder.

Steps to reproduce:
- put any OO document into (say) E:\test\ascii\
- open this document, and save it using "file"/"save as" with another name
- put any OO document into (say) E:\test\ü-not-ascii\
- open that second document by using Windows Explorer or any other shell
  (double click on the document file)
- select "file"/"save as"

Expected behaviour:
The "save as" dialog should default to the path "E:\test\ü-not-ascii".

Observed behaviour:
The "save as" dialog defaults to the path "E:\test\ascii".

This bug apparently applies to all OO document types (I tested with Writer, Calc and Draw) and was also present in 4.1.3 already. It appears to be perfectly reproducible here (tried it on different machines).
Configuration is set to not use OO dialogs (checkbox unchecked).

Eventually this bug might be related to bug 56762 and/or bug 98604.
Comment 1 oooforum (fr) 2017-11-09 11:23:03 UTC
Already reported

*** This issue has been marked as a duplicate of issue 69065 ***
Comment 2 Tilmann Reh 2017-11-09 11:35:57 UTC
This is *NOT* a duplicate of bug 69065.
Please read the description carefully.

I assume that there is a bug in parsing the command line argument. If the provided path contains a non-ASCII character, parsing is aborted so the path is not remembered as the "current directory". As a consequence, "save as" uses the last known "current directory", which in this case is the last recently used path.

This has nothing to do with the "My Dcouments" path. Please also note that the behaviour is correct if the path doesn't contain non-ASCII characters.
Comment 3 Tilmann Reh 2019-03-08 15:51:35 UTC
Sadly, more than a year and two (minor) releases later, this boring bug is still not fixed. It's still perfectly reproducible in 4.1.6.