-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Python, GExiv2, and unicode file names #7167
Comments
From what I see exiv2 exposes extra unicode API using wstring when built with EXV_UNICODE_PATH. gexiv currently passes the paths using the glib path encoding (utf-8 on Windows) to the ANSI API which is wrong, and just happens to work with ASCII. gexiv2 needs to convert paths from utf-8 to utf-16-le, then to wstring, and then pass it to the exiv unicode API. So yes, this needs work with gexiv2. I'd suggest filing a bug there. |
I've found this GLib bug which appears to be related to the problem https://bugzilla.gnome.org/show_bug.cgi?id=795006. It's marked "resolved obsolete" though, as they expect to use streams rather than files in future. The Python interface to GExiv2 has a method to read from a stream but not to write to one. |
yeah, LRN more or less comes to the same conclusion there. |
Bug filed with GExiv2: https://gitlab.gnome.org/GNOME/gexiv2/-/issues/59 |
Thanks |
I've run into a problem using GExiv2 from Python and I'm not sure exactly where the problem lies. A short script shows the problem:
When run on a non-ascii file name this happens:
Exiv2 opens the file without a problem:
I've seen that #2837 fixes exiv2. Does gexiv2 need fixing?
The text was updated successfully, but these errors were encountered: