aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOlivier Tilloy <olivier@tilloy.net>2007-09-28 18:06:51 +0200
committerOlivier Tilloy <olivier@tilloy.net>2007-09-28 18:06:51 +0200
commit57bbe34df56ccc0bc53b207c0e34ab2111e568df (patch)
treea2b0c8d662200b93fab17f4e95e8ed9d050bf261
parent0f59b48f24a0ab6bad382c1c28fd686b65a379c1 (diff)
downloadpyexiv2-57bbe34df56ccc0bc53b207c0e34ab2111e568df.tar.gz
Fixed bug #146313 (passing the filename to the Image constructor as unicode fails): if filename is passed as unicode, it is converted to a regular string.
-rw-r--r--src/pyexiv2.py2
-rw-r--r--todo2
2 files changed, 3 insertions, 1 deletions
diff --git a/src/pyexiv2.py b/src/pyexiv2.py
index a23bfd9..1cb1586 100644
--- a/src/pyexiv2.py
+++ b/src/pyexiv2.py
@@ -281,7 +281,7 @@ class Image(libpyexiv2.Image):
"""
def __init__(self, filename):
- libpyexiv2.Image.__init__(self, filename)
+ libpyexiv2.Image.__init__(self, str(filename))
self.__exifTagsDict = {}
self.__iptcTagsDict = {}
diff --git a/todo b/todo
index 04559d6..da39526 100644
--- a/todo
+++ b/todo
@@ -1,5 +1,7 @@
todo list
+- Tag getters/setters should support unicode strings as well as regular strings (see bug #146313).
+- What about forcing all strings encoding to UTF in tag values? (see Marc's mail)
- Add support for JpegComment getters/setters
- Reflect changes from src/error.cpp in libexiv2 to src/libpyexiv2.cpp: new error messages, error codes changed
- Add a 'doc' builder to the SConstruct to build the module's documentation