* [Bluez-devel] PATCH: handle unicode local device name
@ 2006-11-17 3:57 Denis KENZIOR
2006-11-17 10:10 ` Marcel Holtmann
0 siblings, 1 reply; 3+ messages in thread
From: Denis KENZIOR @ 2006-11-17 3:57 UTC (permalink / raw)
To: bluez-devel
[-- Attachment #1: Type: text/plain, Size: 107 bytes --]
Hey,
This patch fixes a problem with storage.c turning unicode local device names
into '.' dots.
-Denis
[-- Attachment #2: storage.patch --]
[-- Type: text/x-diff, Size: 733 bytes --]
Index: storage.c
===================================================================
RCS file: /cvsroot/bluez/utils/hcid/storage.c,v
retrieving revision 1.43
diff -u -5 -r1.43 storage.c
--- storage.c 27 Oct 2006 14:43:23 -0000 1.43
+++ storage.c 17 Nov 2006 03:53:12 -0000
@@ -119,11 +119,11 @@
char filename[PATH_MAX + 1], str[249];
int i;
memset(str, 0, sizeof(str));
for (i = 0; i < 248 && name[i]; i++)
- if ((unsigned char) name[i] < 32 || name[i] == 127)
+ if ((unsigned char) name[i] < 32)
str[i] = '.';
else
str[i] = name[i];
create_filename(filename, PATH_MAX, bdaddr, "config");
[-- Attachment #3: Type: text/plain, Size: 347 bytes --]
-------------------------------------------------------------------------
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
[-- Attachment #4: Type: text/plain, Size: 164 bytes --]
_______________________________________________
Bluez-devel mailing list
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel
^ permalink raw reply [flat|nested] 3+ messages in thread* Re: [Bluez-devel] PATCH: handle unicode local device name 2006-11-17 3:57 [Bluez-devel] PATCH: handle unicode local device name Denis KENZIOR @ 2006-11-17 10:10 ` Marcel Holtmann 2006-11-17 18:19 ` Albert Huang 0 siblings, 1 reply; 3+ messages in thread From: Marcel Holtmann @ 2006-11-17 10:10 UTC (permalink / raw) To: BlueZ development Hi Denis, > This patch fixes a problem with storage.c turning unicode local device names > into '.' dots. the local device name is in UTF-8 and not unicode and we need to change to character 127 to not corrupt the storage format. Regards Marcel ------------------------------------------------------------------------- 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 ^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [Bluez-devel] PATCH: handle unicode local device name 2006-11-17 10:10 ` Marcel Holtmann @ 2006-11-17 18:19 ` Albert Huang 0 siblings, 0 replies; 3+ messages in thread From: Albert Huang @ 2006-11-17 18:19 UTC (permalink / raw) To: BlueZ development > the local device name is in UTF-8 and not unicode and we need to change > to character 127 to not corrupt the storage format. do you mean "not UCS-2" instead of "not unicode"? -albert ------------------------------------------------------------------------- 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 ^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2006-11-17 18:19 UTC | newest] Thread overview: 3+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2006-11-17 3:57 [Bluez-devel] PATCH: handle unicode local device name Denis KENZIOR 2006-11-17 10:10 ` Marcel Holtmann 2006-11-17 18:19 ` Albert Huang
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.