After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 675679 - Files with spaces in the filename do not open
Files with spaces in the filename do not open
Status: RESOLVED OBSOLETE
Product: planner
Classification: Other
Component: General
0.14.x
Other Linux
: Normal major
: 0.15
Assigned To: Luis Menina
planner-maint
Depends on:
Blocks:
 
 
Reported: 2012-05-08 13:45 UTC by Paul Phillips
Modified: 2021-06-09 20:46 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Filenames with spaces can now be opened (525 bytes, patch)
2012-05-08 13:47 UTC, Paul Phillips
rejected Details | Review

Description Paul Phillips 2012-05-08 13:45:08 UTC
Any file with a space does not open.  It produces the following error dialog:

Failed to open file '/home/<user>/Documents/<location>/test%20file.planner': No such file or directory
Comment 1 Paul Phillips 2012-05-08 13:47:01 UTC
Created attachment 213667 [details] [review]
Filenames with spaces can now be opened
Comment 2 Alexandre Franke 2012-05-08 20:28:11 UTC
Hey Paul. Thanks for the patch. I'm reopening the issue since the patch has neither been reviewed nor pushed yet. We'll marked that as "RESOLVED FIXED" when this is in master. :)
Comment 3 Paul Phillips 2012-05-08 23:32:11 UTC
Ok - apologies.  I will restrain myself next time :)
Comment 4 Alexandre Franke 2012-05-11 14:31:22 UTC
Review of attachment 213667 [details] [review]:

This doesn't seem like the right way to fix the issue.

::: src/planner-window.c
@@ +1695,3 @@
 	priv = window->priv;
+	if (!mrp_project_load (priv->project,
+			               g_filename_from_uri(uri, NULL, NULL),

g_filename_from_uri () returns a newly-allocated string that must be freed.
http://developer.gnome.org/glib/stable/glib-URI-Functions.html#g-filename-from-uri

Actually, we used to have that and it got removed when we "fixed" the broken "open file on startup" behaviour.
Comment 5 nick 2015-01-11 15:01:53 UTC
I use Google translator...

Do not open the file if the name or path contains Cyrillic characters. A new project can be saved.
Message:
Не удалось открыть файл «/home/usern/tmp/%D0%A1%D0%B5%D0%B7%D0%BE%D0%BD%202015.planner»: Нет такого файла или каталога

OS like Gentoo, calculate-linux with XFCE
#uname -a 
Linux usern 3.14.27-calculate #1 SMP PREEMPT Thu Dec 18 16:01:13 MSK 2014 x86_64 AMD A4-5000 APU with Radeon(TM) HD Graphics AuthenticAMD GNU/Linux

#eix app-office/planner
[I] app-office/planner
     Available versions:  0.14.6_p20130520{tbz2} {eds examples python PYTHON_TARGETS="python2_7"}
     Installed versions:  0.14.6_p20130520{tbz2}(12:15:08 11.01.2015)(-eds -examples -python PYTHON_TARGETS="python2_7")
     Homepage:            http://live.gnome.org/Planner/
     Description:         Project manager for Gnome

# locale
LANG=ru_RU.UTF-8
LC_CTYPE="ru_RU.UTF-8"
LC_NUMERIC=POSIX
LC_TIME="ru_RU.UTF-8"
LC_COLLATE="ru_RU.UTF-8"
LC_MONETARY="ru_RU.UTF-8"
LC_MESSAGES="ru_RU.UTF-8"
LC_PAPER="ru_RU.UTF-8"
LC_NAME="ru_RU.UTF-8"
LC_ADDRESS="ru_RU.UTF-8"
LC_TELEPHONE="ru_RU.UTF-8"
LC_MEASUREMENT="ru_RU.UTF-8"
LC_IDENTIFICATION="ru_RU.UTF-8"
LC_ALL=
Comment 6 ibrokemypie 2018-06-29 04:38:02 UTC
Has this issue been forgotten? Bug still exists 3 years later.
Comment 7 GNOME Infrastructure Team 2021-06-09 20:46:56 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to GNOME's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/World/planner/-/issues/213.