rpms/bluez/devel bluez-try-utf8-harder.patch, NONE, 1.1 bluez.spec, 1.44, 1.45
Bastien Nocera
hadess at fedoraproject.org
Thu Mar 5 18:53:43 UTC 2009
- Previous message (by thread): rpms/esperanza/devel esperanza-0.4.0-gitfixes20081204.patch, NONE, 1.1 esperanza.desktop, NONE, 1.1 esperanza.png, NONE, 1.1 esperanza.spec, NONE, 1.1 import.log, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2
- Next message (by thread): rpms/esperanza/F-10 esperanza-0.4.0-gitfixes20081204.patch, NONE, 1.1 esperanza.desktop, NONE, 1.1 esperanza.png, NONE, 1.1 esperanza.spec, NONE, 1.1 sources, 1.1, 1.2
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Author: hadess
Update of /cvs/pkgs/rpms/bluez/devel
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv26897
Modified Files:
bluez.spec
Added Files:
bluez-try-utf8-harder.patch
Log Message:
* Thu Mar 05 2009 - Bastien Nocera <bnocera at redhat.com> - 4.32-4
- Work-around broken devices that export their names in ISO-8859-1
(#450081)
bluez-try-utf8-harder.patch:
--- NEW FILE bluez-try-utf8-harder.patch ---
diff --git a/src/security.c b/src/security.c
index a61d75f..75908ba 100644
--- a/src/security.c
+++ b/src/security.c
@@ -600,8 +600,16 @@ static inline void remote_name_information(int dev, bdaddr_t *sba, void *ptr)
memcpy(name, evt->name, 248);
/* It's ok to cast end between const and non-const since
* we know it points to inside of name which is non-const */
- if (!g_utf8_validate(name, -1, (const char **) &end))
- *end = '\0';
+ if (!g_utf8_validate(name, -1, (const char **) &end)) {
+ char *utf8_name;
+
+ utf8_name = g_convert(name, -1, "UTF-8", "ISO-8859-1", NULL, NULL, NULL);
+ if (utf8_name) {
+ memcpy(name, utf8_name, 248);
+ g_free(utf8_name);
+ } else
+ *end = '\0';
+ }
write_device_name(sba, &dba, name);
}
Index: bluez.spec
===================================================================
RCS file: /cvs/pkgs/rpms/bluez/devel/bluez.spec,v
retrieving revision 1.44
retrieving revision 1.45
diff -u -r1.44 -r1.45
--- bluez.spec 5 Mar 2009 00:56:51 -0000 1.44
+++ bluez.spec 5 Mar 2009 18:53:13 -0000 1.45
@@ -1,7 +1,7 @@
Summary: Bluetooth utilities
Name: bluez
Version: 4.32
-Release: 3%{?dist}
+Release: 4%{?dist}
License: GPLv2+
Group: Applications/System
Source: http://www.kernel.org/pub/linux/bluetooth/%{name}-%{version}.tar.gz
@@ -9,6 +9,9 @@
Source2: bluetooth.conf
Source3: bluez-uinput.modules
Patch1: bluez-utils-oui-usage.patch
+# https://bugzilla.redhat.com/show_bug.cgi?id=450081
+# http://thread.gmane.org/gmane.linux.bluez.kernel/1687
+Patch2: bluez-try-utf8-harder.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
URL: http://www.bluez.org/
@@ -95,6 +98,7 @@
%setup -q
%patch1 -p0 -b .oui
+%patch2 -p1 -b .non-utf8-name
%build
%configure --enable-cups --enable-hid2hci --enable-dfutool --enable-tools --enable-bccmd --enable-gstreamer --enable-hidd --enable-pand --enable-dund
@@ -187,6 +191,10 @@
%{_libdir}/alsa-lib/*.so
%changelog
+* Thu Mar 05 2009 - Bastien Nocera <bnocera at redhat.com> - 4.32-4
+- Work-around broken devices that export their names in ISO-8859-1
+ (#450081)
+
* Thu Mar 05 2009 - Bastien Nocera <bnocera at redhat.com> - 4.32-3
- Fix permissions on the udev rules (#479348)
- Previous message (by thread): rpms/esperanza/devel esperanza-0.4.0-gitfixes20081204.patch, NONE, 1.1 esperanza.desktop, NONE, 1.1 esperanza.png, NONE, 1.1 esperanza.spec, NONE, 1.1 import.log, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2
- Next message (by thread): rpms/esperanza/F-10 esperanza-0.4.0-gitfixes20081204.patch, NONE, 1.1 esperanza.desktop, NONE, 1.1 esperanza.png, NONE, 1.1 esperanza.spec, NONE, 1.1 sources, 1.1, 1.2
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the fedora-extras-commits
mailing list