Unicode filenames on Windows
Lukáš Lalinský
lalinsky at gmail.com
Mon Nov 5 08:34:06 CET 2007
Hi Scott,
having support for Unicode filename API is a must for any more serious
usage on Windows, so I choose probably the only binary compatible way,
that makes sense, to do it -- duplicating constructors of all
TagLib::File subclasses to support also wchar_t* in addition to char*.
On non-Windows platforms, these constructors aren't defined, so the API
stays unchanged there. I intentionally didn't change TagLib::FileRef,
because with dynamically added file type resolvers that depend on
filename it gets ugly. If you think it would be useful, I can add a
subclass of FileTypeResolver with two methods for IDing file types
(char*/wchar_t*), but I personally don't think it's necessary.
OK to commit?
Lukas
-------------- next part --------------
A non-text attachment was scrubbed...
Name: taglib-unicode-filenames.diff
Type: text/x-patch
Size: 12431 bytes
Desc: not available
Url : http://mail.kde.org/pipermail/taglib-devel/attachments/20071105/5e7eeed9/attachment.bin
More information about the taglib-devel
mailing list