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 578651 Details for
Bug 813977
libdvdread fails to read DVDs with unexpected unicode filenames
[?]
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]
enhanced patch from ubuntu forum
libdvdread-unicode.patch (text/plain), 1.03 KB, created by
Honza Horak
on 2012-04-19 13:24:31 UTC
(
hide
)
Description:
enhanced patch from ubuntu forum
Filename:
MIME Type:
Creator:
Honza Horak
Created:
2012-04-19 13:24:31 UTC
Size:
1.03 KB
patch
obsolete
>diff -up libdvdread-4.2.0/src/dvd_udf.c.unicode libdvdread-4.2.0/src/dvd_udf.c >--- libdvdread-4.2.0/src/dvd_udf.c.unicode 2011-10-06 14:10:01.000000000 +0200 >+++ libdvdread-4.2.0/src/dvd_udf.c 2012-04-19 14:58:49.574462443 +0200 >@@ -328,17 +328,24 @@ static int SetUDFCache(dvd_reader_t *dev > > static int Unicodedecode( uint8_t *data, int len, char *target ) > { >- int p = 1, i = 0; > int err = 0; >- >- if( ( data[ 0 ] == 8 ) || ( data[ 0 ] == 16 ) ) do { >- if( data[ 0 ] == 16 ) err |= data[p++]; /* character cannot be converted to 8bit, return error */ >- if( p < len ) { >- target[ i++ ] = data[ p++ ]; >+ len--; >+ data++; >+ if (data[-1] == 8) >+ memcpy(target, data, len); >+ else if (data[-1] == 16) { >+ int i; >+ for (i=0; i<len; i++) { >+ if (data[2*i] == 0) >+ target[i] = data[i*2+1]; >+ else { >+ err = 1; /* character cannot be converted to 8bit, return error */ >+ target[i] = 0; >+ } > } >- } while( p < len ); >+ } >+ target[len] = '\0'; > >- target[ i ] = '\0'; > return !err; > } >
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 813977
: 578651 |
578795