[gimp/gimp-2-10] plug-ins: fix #2655 Can't open EPS-files with german Umlauts
- From: Jacob Boerema <jboerema src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp/gimp-2-10] plug-ins: fix #2655 Can't open EPS-files with german Umlauts
- Date: Mon, 9 Aug 2021 16:26:01 +0000 (UTC)
commit 85e4521b932729bef40b68656828c340f1a671fb
Author: Jacob Boerema <jgboerema gmail com>
Date: Sat Aug 7 17:22:27 2021 -0400
plug-ins: fix #2655 Can't open EPS-files with german Umlauts
Due to differences between Windows and most other platforms Ghostscript
didn't correctly load files with special characters on Windows.
First we needed to make sure that the filenames we use are in utf-8
format and then tell gsapi that we use utf8 encoding.
(cherry picked from commit 4f86d8088dd71edf3d99d8ddcb45c2d399da6903)
# Conflicts:
# plug-ins/common/file-ps.c
plug-ins/common/file-ps.c | 1 +
1 file changed, 1 insertion(+)
---
diff --git a/plug-ins/common/file-ps.c b/plug-ins/common/file-ps.c
index 62d88c43b2..6e4b82ebd6 100644
--- a/plug-ins/common/file-ps.c
+++ b/plug-ins/common/file-ps.c
@@ -1765,6 +1765,7 @@ ps_open (const gchar *filename,
code = gsapi_new_instance (&instance, NULL);
if (code == 0) {
+ code = gsapi_set_arg_encoding(instance, GS_ARG_ENCODING_UTF8);
code = gsapi_init_with_args (instance, cmdA->len - 1, pcmdA);
code = gsapi_exit (instance);
gsapi_delete_instance (instance);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]