From: <alexvm12e@mail.ru>
To: "Luiz Augusto von Dentz" <luiz.dentz@gmail.com>
Cc: <linux-bluetooth@vger.kernel.org>
Subject: Re: obexd: obex_handle_input: poll event HUP ERR
Date: Thu, 22 Sep 2011 00:40:46 -0700 [thread overview]
Message-ID: <002f01cc78fa$f27c95f0$2947dd0a@ALEXM> (raw)
In-Reply-To: CABBYNZ+hXiRQv7KesdgX790wWPabYXvUecq0D=2PjgmVEWTL2A@mail.gmail.com
Hi Luiz,
> Can you try the following:
> diff --git a/src/obex.c b/src/obex.c
> index d8f4648..7b68814 100644
> --- a/src/obex.c
> +++ b/src/obex.c
> @@ -985,6 +985,7 @@ static gboolean check_put(obex_t *obex, obex_object_t
> *obj)
> unsigned int hlen;
> uint8_t hi;
> int ret;
> + GError *err = NULL;
>
> os = OBEX_GetUserData(obex);
>
> @@ -1010,7 +1011,12 @@ static gboolean check_put(obex_t *obex,
> obex_object_t *obj)
> continue;
>
> os->name = g_convert((const char *) hd.bs, hlen,
> - "UTF8", "UTF16BE", NULL, NULL, NULL);
> + "UTF8", "UTF16BE", NULL, NULL, &err);
> + if (err) {
> + error("%s", err->message);
> + g_error_free(err);
> + }
> +
> DBG("OBEX_HDR_NAME: %s", os->name);
> break;
obexd[844]: Conversion from character set 'UTF16BE' to 'UTF8' is not supported
As I understood this is a glib problem not obexd. Thanks for your help.
Alex.
next prev parent reply other threads:[~2011-09-22 7:40 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <E1R47Z5-0000QH-00.alexvm12e-mail-ru@f167.mail.ru>
2011-09-16 8:07 ` obexd: obex_handle_input: poll event HUP ERR Luiz Augusto von Dentz
2011-09-21 12:13 ` Alex Mach
2011-09-21 12:33 ` Luiz Augusto von Dentz
2011-09-22 7:40 ` alexvm12e [this message]
2011-09-22 8:07 ` Luiz Augusto von Dentz
2011-09-15 7:43 Alex Mach
-- strict thread matches above, loose matches on Subject: below --
2010-06-22 7:23 Jiri Slaby
2010-06-22 7:38 ` Johan Hedberg
2010-06-22 7:41 ` Jiri Slaby
2010-06-22 7:58 ` Johan Hedberg
2010-06-22 8:04 ` Jiri Slaby
2010-06-22 8:13 ` Johan Hedberg
2010-06-22 16:16 ` Jiri Slaby
2010-06-22 16:34 ` Bastien Nocera
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='002f01cc78fa$f27c95f0$2947dd0a@ALEXM' \
--to=alexvm12e@mail.ru \
--cc=linux-bluetooth@vger.kernel.org \
--cc=luiz.dentz@gmail.com \
/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;
as well as URLs for NNTP newsgroup(s).