2007-01-08 18:32:32

by Pierre-Yves Paulus

[permalink] [raw]
Subject: [Bluez-devel] Accented characters in friendly name properly handled in BlueZ?

Hello,

I'm using the D-Bus API to get the friendly name of a terminal wich name
contains accented chars. In the String I get, each accented character
(eg not a 1-byte ASCII char) gets replaced by 2 chars, each with value 0x2e.

Is the problem coming from BlueZ or from the D-Bus bindings layer? Where
should I look to get a clue?

Best Regards,
Pierre-Yves

-------------------------------------------------------------------------
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel


2007-01-08 18:50:37

by Pierre-Yves Paulus

[permalink] [raw]
Subject: Re: [Bluez-devel] Accented characters in friendly name properly handled in BlueZ?

Hi Johan,

> On Mon, Jan 08, 2007, Pierre-Yves Paulus wrote:
>> I'm using the D-Bus API to get the friendly name of a terminal wich name
>> contains accented chars. In the String I get, each accented character
>> (eg not a 1-byte ASCII char) gets replaced by 2 chars, each with value 0x2e.
>>
>> Is the problem coming from BlueZ or from the D-Bus bindings layer? Where
>> should I look to get a clue?
>
> It's a bug in the validation code responsible for storing the
> friendly name. It has been fixed in the 3.8 release.

Thanks for the fast answer. I will upgrade soon then (am currently using
3.7).

Best Regards,
Pierre-Yves

-------------------------------------------------------------------------
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel

2007-01-08 18:39:07

by Johan Hedberg

[permalink] [raw]
Subject: Re: [Bluez-devel] Accented characters in friendly name properly handled in BlueZ?

Hi Pierre-Yves,

On Mon, Jan 08, 2007, Pierre-Yves Paulus wrote:
> I'm using the D-Bus API to get the friendly name of a terminal wich name
> contains accented chars. In the String I get, each accented character
> (eg not a 1-byte ASCII char) gets replaced by 2 chars, each with value 0x2e.
>
> Is the problem coming from BlueZ or from the D-Bus bindings layer? Where
> should I look to get a clue?

It's a bug in the validation code responsible for storing the
friendly name. It has been fixed in the 3.8 release.

JOhan

-------------------------------------------------------------------------
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel