From: Marcel Holtmann <marcel@holtmann.org>
To: bluez-devel@lists.sourceforge.net
Subject: Re: [Bluez-devel] Translated strings in SDP records
Date: Wed, 20 Apr 2005 12:40:24 +0200 [thread overview]
Message-ID: <1113993624.2469.111.camel@pegasus> (raw)
In-Reply-To: <200504201221.17999.bluez-devel@schaettgen.de>
Hi Fred,
> A few days ago I have been asked to support translated strings in the SDP
> related parts of kdebluetooth, so that service names are displayed in an
> appropriate language in the user interface.
> All my devices use English only for the SDP records, so I asked Alex Dubov,
> who sent the feature request, to show me his sdp records.
> The output of sdptool browse --tree is attached. His device claims to support
> various languages in the LanguageBaseAttributeIDList, but the services names
> themselves are only returned in one language. Shouldn't the names be returned
> in all suported languages at once? Or do I have to request the desired
> languages explicitly somehow?
I must admit that I never used this stupid multi language thing, but the
general idea is that you can specify offsets for the strings. The base
offset is 0x100 and thus the attributes 0x100, 0x101 and 0x102 gives you
the correct strings.
So looking at the DUN record the extra strings must be at 0xd800 + 0,
0xd800 + 1, 0xd800 + 2, 0xd803 + 0, 0xd803 + 1 etc. But I don't see any
attributes there and this means that this SDP record is incomplete. I
looked at the sdptool code to verify that we request all attributes and
indeed I saw the range 0x0000 - 0xffff which should include the 0xd8xx
attributes.
What kind of broken device is this? Maybe you wanna give sdptest from
libs2 a try.
Regards
Marcel
-------------------------------------------------------
This SF.Net email is sponsored by: New Crystal Reports XI.
Version 11 adds new functionality designed to reduce time involved in
creating, integrating, and deploying reporting solutions. Free runtime info,
new features, or free trial, at: http://www.businessobjects.com/devxi/728
_______________________________________________
Bluez-devel mailing list
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel
prev parent reply other threads:[~2005-04-20 10:40 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-04-20 10:21 [Bluez-devel] Translated strings in SDP records Fred Schaettgen
2005-04-20 10:40 ` Marcel Holtmann [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1113993624.2469.111.camel@pegasus \
--to=marcel@holtmann.org \
--cc=bluez-devel@lists.sourceforge.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox