Bug 381052

Summary: Path separator copied to clipboard should be original character
Product: [Applications] kate Reporter: Yuki <X1353135>
Component: applicationAssignee: KWrite Developers <kwrite-bugs-null>
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version First Reported In: 17.04.1   
Target Milestone: ---   
Platform: Microsoft Windows   
OS: Microsoft Windows   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Yuki 2017-06-10 03:26:17 UTC
Kate supports a menu to copy file path into clipboard, but the characters of path separator are converted from back slash to front slash automatically on windows.
Kate should keep original characters of path separator during copy.
Comment 1 Christoph Feck 2017-06-10 10:16:38 UTC
Does the clipboard text include the file:// prefix?
Comment 2 Yuki 2017-06-10 15:46:51 UTC
File path text is converted like following

D:\Downloads\desktop.ini  --->   D:/Downloads/desktop.ini

Text in clipboard doesn't contain file:// prefix
Comment 3 Christoph Cullmann 2017-07-25 07:47:28 UTC
Git commit 209cc0388cc931383154320dac5d6054ada8f7d4 by Christoph Cullmann.
Committed on 25/07/2017 at 07:47.
Pushed by cullmann into branch 'master'.

prefer native file separators in output

M  +6    -1    addons/filetree/katefiletree.cpp

https://commits.kde.org/kate/209cc0388cc931383154320dac5d6054ada8f7d4