GNOME Bugzilla – Bug 675679
Files with spaces in the filename do not open
Last modified: 2021-06-09 20:46:56 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
Created attachment 213667 [details] [review] Filenames with spaces can now be opened
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. :)
Ok - apologies. I will restrain myself next time :)
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.
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=
Has this issue been forgotten? Bug still exists 3 years later.
-- 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.