diff options
author | Olivier Tilloy <olivier@tilloy.net> | 2007-09-28 18:06:51 +0200 |
---|---|---|
committer | Olivier Tilloy <olivier@tilloy.net> | 2007-09-28 18:06:51 +0200 |
commit | 57bbe34df56ccc0bc53b207c0e34ab2111e568df (patch) | |
tree | a2b0c8d662200b93fab17f4e95e8ed9d050bf261 | |
parent | 0f59b48f24a0ab6bad382c1c28fd686b65a379c1 (diff) | |
download | pyexiv2-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.py | 2 | ||||
-rw-r--r-- | todo | 2 |
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 = {} @@ -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 |