linux-bluetooth.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Luiz Augusto von Dentz <luiz.dentz@gmail.com>
To: alexvm12e@mail.ru
Cc: linux-bluetooth@vger.kernel.org
Subject: Re: obexd: obex_handle_input: poll event HUP ERR
Date: Thu, 22 Sep 2011 11:07:25 +0300	[thread overview]
Message-ID: <CABBYNZKXoKZPL5EESrfbs7ZuU=b0509m7V7_Zs08s42a_6q0RQ@mail.gmail.com> (raw)
In-Reply-To: <002f01cc78fa$f27c95f0$2947dd0a@ALEXM>

Hi,

On Thu, Sep 22, 2011 at 10:40 AM,  <alexvm12e@mail.ru> wrote:
>
> 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.

Yep, probably some dependency missing so that it makes glib unable to
do the conversion. Anyway I think I gonna go ahead and add these so
that it is easier to detect such problem in the future.

-- 
Luiz Augusto von Dentz

  reply	other threads:[~2011-09-22  8:07 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
2011-09-22  8:07         ` Luiz Augusto von Dentz [this message]
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='CABBYNZKXoKZPL5EESrfbs7ZuU=b0509m7V7_Zs08s42a_6q0RQ@mail.gmail.com' \
    --to=luiz.dentz@gmail.com \
    --cc=alexvm12e@mail.ru \
    --cc=linux-bluetooth@vger.kernel.org \
    /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).