Bug 345140 - The unicode space " " (U+3000) is interpreted as a separator
Summary: The unicode space " " (U+3000) is interpreted as a separator
Status: RESOLVED FIXED
Alias: None
Product: frameworks-kio
Classification: Frameworks and Libraries
Component: general (show other bugs)
Version: unspecified
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: David Faure
URL:
Keywords:
: 268771 (view as bug list)
Depends on:
Blocks:
 
Reported: 2015-03-14 11:48 UTC by Zéfling
Modified: 2015-10-04 19:21 UTC (History)
5 users (show)

See Also:
Latest Commit:
Version Fixed In: 5.15


Attachments
Example in image. (35.97 KB, image/png)
2015-03-14 11:49 UTC, Zéfling
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Zéfling 2015-03-14 11:48:12 UTC
Bad interpretation of Unicode space in execution. 

Reproducible: Always

Steps to Reproduce:
1. I create a file like : "test テスト.txt"
2. I launch the file (with kate)
3. In Kate, I have 2 file : "test" and "テスト.txt"
Comment 1 Zéfling 2015-03-14 11:49:09 UTC
Created attachment 91555 [details]
Example in image.
Comment 2 Frank Reininghaus 2015-03-15 10:42:36 UTC
Thanks for the bug report! I can reproduce the problem, but it's most likely not a Dolphin issue (I can also reproduce it in FolderView). KRun is used to open files with applications like Kate, so I'll reassign to KIO.
Comment 3 Maarten De Meyer 2015-05-18 18:51:01 UTC
Thank you for the bug report.

I'll take a look at this.

*** This bug has been marked as a duplicate of bug 341916 ***
Comment 4 David Faure 2015-10-04 09:46:58 UTC
Not the same as 341916, because *this* one I can reproduce ;)
Comment 5 David Faure 2015-10-04 09:48:09 UTC
Note that it works with an ASCII space, so this is indeed specific to the Unicode space character.
Comment 6 David Faure 2015-10-04 12:59:43 UTC
Git commit bfe6f2fc9fc093723af065fbb1bf734148f0c1c2 by David Faure.
Committed on 04/10/2015 at 12:59.
Pushed by dfaure into branch 'master'.

KShell::splitArgs: only ASCII space is a separator, not unicode space U+3000
REVIEW: 125517
FIXED-IN: 5.15

M  +5    -0    autotests/kshelltest.cpp
M  +5    -5    src/lib/util/kshell_unix.cpp

http://commits.kde.org/kcoreaddons/bfe6f2fc9fc093723af065fbb1bf734148f0c1c2
Comment 7 Frank Reininghaus 2015-10-04 17:50:41 UTC
*** Bug 268771 has been marked as a duplicate of this bug. ***
Comment 8 ariasuni 2015-10-04 18:34:55 UTC
This was really a terrible bug for user experience (and I was confronted to this issue yesterday) so thank you very much. :)
Comment 9 David Faure 2015-10-04 19:12:05 UTC
Well, I'm still curious as to what is the use case for a "unicode space" in a filename ;-)
Comment 10 ariasuni 2015-10-04 19:21:30 UTC
It’s called «Ideographic Space» and is in the «CJK Symbols and Punctuation» block so it’s probably also used in Chinese and Korean.