mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
Bug 721576 - Gnucash can not work with files, that have russian symbols in path.
g_win32_locale_filename_from_utf8() is not only unnecessary, it does the wrong thing. git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23700 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
parent
767a25f7a7
commit
65e6185014
@ -786,16 +786,13 @@ qof_session_load_from_xml_file_v2_full(
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
/* Even though libxml2 knows how to decompress zipped files, we do it
|
/* Even though libxml2 knows how to decompress zipped files, we
|
||||||
ourself since as of version 2.9.1 it has a bug that causes it to fail
|
* do it ourself since as of version 2.9.1 it has a bug that
|
||||||
to decompress certain files.
|
* causes it to fail to decompress certain files. See
|
||||||
See https://bugzilla.gnome.org/show_bug.cgi?id=712528 for more info */
|
* https://bugzilla.gnome.org/show_bug.cgi?id=712528 for more
|
||||||
|
* info.
|
||||||
|
*/
|
||||||
gchar *filename = fbe->fullpath;
|
gchar *filename = fbe->fullpath;
|
||||||
#ifdef G_OS_WIN32
|
|
||||||
filename = g_win32_locale_filename_from_utf8(fbe->fullpath);
|
|
||||||
if (filename)
|
|
||||||
{
|
|
||||||
#endif
|
|
||||||
FILE *file;
|
FILE *file;
|
||||||
gboolean is_compressed = is_gzipped_file(filename);
|
gboolean is_compressed = is_gzipped_file(filename);
|
||||||
file = try_gz_open(filename, "r", is_compressed, FALSE);
|
file = try_gz_open(filename, "r", is_compressed, FALSE);
|
||||||
@ -812,12 +809,6 @@ qof_session_load_from_xml_file_v2_full(
|
|||||||
if (is_compressed)
|
if (is_compressed)
|
||||||
wait_for_gzip(file);
|
wait_for_gzip(file);
|
||||||
}
|
}
|
||||||
#ifdef G_OS_WIN32
|
|
||||||
g_free(filename);
|
|
||||||
}
|
|
||||||
else
|
|
||||||
retval = FALSE;
|
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!retval)
|
if (!retval)
|
||||||
|
Loading…
Reference in New Issue
Block a user