[gimp/wip/wormnest/metadata-save] libgimpbase: fix #7383 GIMP loses exif data when a folder has Hebrew letters
- From: Jacob Boerema <jboerema src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp/wip/wormnest/metadata-save] libgimpbase: fix #7383 GIMP loses exif data when a folder has Hebrew letters
- Date: Fri, 29 Oct 2021 17:15:27 +0000 (UTC)
commit 829aae245894cbb1b5337741235c9f79d6a040a5
Author: Jacob Boerema <jgboerema gmail com>
Date: Fri Oct 29 13:14:47 2021 -0400
libgimpbase: fix #7383 GIMP loses exif data when a folder has Hebrew letters
On Windows when exporting an image saving the exif and other metadata fails
if the path or filename includes non ASCII characters.
Reason is that gexiv2 changed to using utf-8.
In the past we had to convert the filename to current locale on Windows,
but since it now also expects utf-8 there, just remove the special
handling of filename there.
libgimpbase/gimpmetadata.c | 14 --------------
1 file changed, 14 deletions(-)
---
diff --git a/libgimpbase/gimpmetadata.c b/libgimpbase/gimpmetadata.c
index 705cc950e4..329a0e0eb4 100644
--- a/libgimpbase/gimpmetadata.c
+++ b/libgimpbase/gimpmetadata.c
@@ -989,21 +989,7 @@ gimp_metadata_save_to_file (GimpMetadata *metadata,
return FALSE;
}
-#ifdef G_OS_WIN32
- filename = g_win32_locale_filename_from_utf8 (path);
- /* FIXME!
- * This call can return NULL.
- */
- if (! filename)
- {
- g_free (path);
- g_set_error (error, GIMP_METADATA_ERROR, 0,
- _("Conversion of the filename to system codepage failed."));
- return FALSE;
- }
-#else
filename = g_strdup (path);
-#endif
g_free (path);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]