[PATCH] fix for non utf8 valid volume labels

Danny Kukawka danny.kukawka at web.de
Thu Aug 25 11:37:13 PDT 2005


Hi,

this is a patch to fix problems with non utf8 valid volume labels. Now we 
check if the volume label is valid and if not we replace the invalid 
characters with '?'.

The reason: D-BUS accept only utf8 valid strings. If the string is invalid the 
volume won't be added to HAL. (see: 
https://bugzilla.novell.com/show_bug.cgi?id=105445)

Please review for next release (0.5.4).

Cheers,

Danny

 Makefile.am    |    4 ++--
 probe-volume.c |   32 ++++++++++++++++++++++++++++----
 2 files changed, 30 insertions(+), 6 deletions(-)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: hal-fix-invalid_utf8_volume_label.diff
Type: text/x-diff
Size: 3056 bytes
Desc: not available
Url : http://lists.freedesktop.org/archives/hal/attachments/20050825/511f809c/hal-fix-invalid_utf8_volume_label.bin


More information about the hal mailing list