Return-Path: From: Bastien Nocera To: bluez-devel@lists.sourceforge.net Date: Wed, 07 Mar 2007 00:27:13 +0000 Message-Id: <1173227233.10237.44.camel@cookie.hadess.net> Mime-Version: 1.0 Subject: [Bluez-devel] non-ASCII chars in device names Reply-To: BlueZ development List-Id: BlueZ development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Sender: bluez-devel-bounces@lists.sourceforge.net Errors-To: bluez-devel-bounces@lists.sourceforge.net Heya, I got this report for gnome-bluetooth some time ago: http://bugzilla.gnome.org/show_bug.cgi?id=380408 I fixed the problem altogether by replacing this code by D-Bus code calling hcid. The problem is that the name of the device only shows up the very first time the device is discovered, and it seems to me that the cache is busted: In hcid/storage.c: for (i = 0; i < 248 && name[i]; i++) if ((unsigned char) name[i] < 32 || name[i] == 127) str[i] = '.'; else str[i] = name[i]; Why? If the data is correct UTF-8, it could be saved as-is in the file, minus any tabs, unbreakable spaces, or line feeds. -- Bastien Nocera ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Bluez-devel mailing list Bluez-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bluez-devel