Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 152154 Details for
Bug 235480
Totem and Rhythmbox truncate some long mp3 album/track titles on FC6
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
rb-shorter-duplicate-tags.patch
rb-shorter-duplicate-tags.patch (text/plain), 1.09 KB, created by
Bastien Nocera
on 2007-04-10 16:04:05 UTC
(
hide
)
Description:
rb-shorter-duplicate-tags.patch
Filename:
MIME Type:
Creator:
Bastien Nocera
Created:
2007-04-10 16:04:05 UTC
Size:
1.09 KB
patch
obsolete
>Index: rb-metadata-gst.c >=================================================================== >--- rb-metadata-gst.c (revision 5025) >+++ rb-metadata-gst.c (working copy) >@@ -678,10 +678,12 @@ > > switch (type) { > case G_TYPE_STRING: { >- /* Reject invalid utf-8 strings, and then >- * remove leading and trailing whitespace. >+ /* Reject invalid utf-8 strings, shorter duplicated tags >+ * and then remove leading and trailing whitespace. > */ > char *str; >+ const char *old_str; >+ > str = g_value_dup_string (newval); > > if (!g_utf8_validate (str, -1, NULL)) { >@@ -692,6 +694,20 @@ > return; > } > str = g_strstrip (str); >+ >+ /* Check whether we have a shorter duplicate tag, >+ * Doesn't work with non-normalised UTF-8 strings */ >+ old_str = g_value_get_string (val); >+ if (old_str != NULL >+ && g_utf8_strlen (old_str, -1) > g_utf8_strlen (str, -1)) { >+ if (g_str_has_prefix (old_str, str) != FALSE) { >+ rb_debug ("Got shorter duplicate tag"); >+ g_free (str); >+ g_value_unset (newval); >+ g_free (newval); >+ return; >+ } >+ } > g_value_take_string (newval, str); > break; > }
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 235480
: 152154