Projects
Multimedia
mediatomb
mediatomb-taglib-utf8.patch
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File mediatomb-taglib-utf8.patch of Package mediatomb
When converting a UTF-8 TagLib::String to a std::String the size() function cannot be used to derive the size of the C string. Doing so might loose (multi-byte) characters in the conversion. diff -ur mediatomb-0.12.1.svn2103.orig/src/metadata/taglib_handler.cc mediatomb-0.12.1.svn2103/src/metadata/taglib_handler.cc --- mediatomb-0.12.1.svn2103.orig/src/metadata/taglib_handler.cc 2012-11-09 03:02:02.306177095 +0100 +++ mediatomb-0.12.1.svn2103/src/metadata/taglib_handler.cc 2012-11-09 03:02:02.306177095 +0100 @@ -230,7 +230,7 @@ { TagLib::String frameContents = textFrame->toString(); //log_debug("We have a match!!!!: %s\n", frameContents.toCString(true)); - String value(frameContents.toCString(true), frameContents.size()); + String value(frameContents.toCString(true)); value = sc->convert(value); log_debug("Adding frame: %s with value %s\n", desiredFrame.c_str(), value.c_str()); item->setAuxData(desiredFrame, value);
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.