diff --git a/0f6465ca6ddfb882db15c54685ba218e5c59c430.diff b/0f6465ca6ddfb882db15c54685ba218e5c59c430.diff new file mode 100644 index 0000000..fd98977 --- /dev/null +++ b/0f6465ca6ddfb882db15c54685ba218e5c59c430.diff @@ -0,0 +1,28 @@ +diff --git a/libgnucash/engine/gnc-uri-utils.c b/libgnucash/engine/gnc-uri-utils.c +index 56390041c2..0158820e31 100644 +--- a/libgnucash/engine/gnc-uri-utils.c ++++ b/libgnucash/engine/gnc-uri-utils.c +@@ -323,7 +323,22 @@ gchar *gnc_uri_create_uri (const gchar *scheme, + else + uri_scheme = g_strdup (scheme); + +- if (g_str_has_prefix (abs_path, "/")) ++ /* Arrive here with... ++ * ++ * /my/path/to/file with space.txt ++ * becomes file:///my/path/to/file with space.txt ++ * ++ * c:\my\path\to\file with space.txt ++ * becomes file:///c:\my\path\to\file with space.txt ++ * ++ * \\myserver\share\path\to\file with space.txt ++ * becomes file://\\myserver\share\path\to\file with space.txt ++ * ++ * probably they should all be forward slashs and spaces escaped ++ * also with UNC it could be file://myserver/share/path/to/file with space.txt ++ */ ++ ++ if (g_str_has_prefix (abs_path, "/") || g_str_has_prefix (abs_path, "\\")) + uri = g_strdup_printf ( "%s://%s", uri_scheme, abs_path ); + else // for windows add an extra "/" + uri = g_strdup_printf ( "%s:///%s", uri_scheme, abs_path ); diff --git a/gnucash.spec b/gnucash.spec index f33c023..c8a9acd 100644 --- a/gnucash.spec +++ b/gnucash.spec @@ -5,6 +5,8 @@ URL: http://gnucash.org/ Release: 1%{?dist} License: GPLv2+ Source: http://downloads.sourceforge.net/sourceforge/gnucash/gnucash-%{version}.tar.bz2 +# upstream patch for https://bugzilla.redhat.com/show_bug.cgi?id=1698706 +Patch1: 0f6465ca6ddfb882db15c54685ba218e5c59c430.diff # https://bugzilla.redhat.com/show_bug.cgi?id=1563466 ExcludeArch: ppc64 s390x @@ -88,6 +90,9 @@ appstream-util validate-relax --nonet $RPM_BUILD_ROOT%{_datadir}/metainfo/gnucas %config(noreplace) %{_sysconfdir}/gnucash/* %changelog +* Mon Apr 15 2019 Bill Nottingham - 3.5-2 +- add upstream patch for https://bugzilla.redhat.com/show_bug.cgi?id=1698706 + * Tue Apr 2 2019 Bill Nottingham - 3.5-1 - update to 3.5