Package: libmultisync-plugin-irmc-bluetooth
Followup-For: Bug #274022

Hi,
Could anyone fix it, recompile and upload the deb file into experimental?
I think I found a source of this bug in multisync-0.82/src/sync_vtype.c
The following code should be changed:

      if ((opts & VOPTION_FIXCHARSET) && value && charset) {
        iconv_t ic;
        int t;
        gboolean highchar = FALSE;
        for (t = 0; t < strlen(value); t++)
          if (value[t] > 127)
            highchar = TRUE;
        if (highchar) {
          ic = iconv_open("UTF-8", charset);
          if (ic >= 0) {
            char *utfvalue = g_malloc0(65536);
            size_t inbytes = strlen(value);
            size_t outbytes = 65536;
            char *inbuf = value, *outbuf = utfvalue;
            iconv(ic, &inbuf, &inbytes, &outbuf, &outbytes);
            g_free(value);
            value = utfvalue;
            iconv_close(ic);
          }
        }
      }

into the following:

      if ((opts & VOPTION_FIXCHARSET) && value && charset) {
        iconv_t ic;
        /* highchar assumption does not work with UTF-7 found on T610 phone
        int t;
        gboolean highchar = FALSE;
        for (t = 0; t < strlen(value); t++)
          if (value[t] > 127)
            highchar = TRUE;
        if (highchar) {
        */
          ic = iconv_open("UTF-8", charset);
          if (ic >= 0) {
            char *utfvalue = g_malloc0(65536);
            size_t inbytes = strlen(value);
            size_t outbytes = 65536;
            char *inbuf = value, *outbuf = utfvalue;
            iconv(ic, &inbuf, &inbytes, &outbuf, &outbytes);
            g_free(value);
            value = utfvalue;
            iconv_close(ic);
          }
          //    }
      }

Yes, this weird optimisation should be removed in order to work with 7-bit 
encodings. Besides, not much is gained anyway.

I could not verify this though, as my custom packaged multisync 
resulted from "debuild -us -uc" complains with:

Fontconfig error: "conf.d", line 1: no element found
No fonts found; this probably means that the fontconfig
library is not correctly configured. You may need to
edit the fonts.conf configuration file. More information
about fontconfig can be found in the fontconfig(3) manual
page and on http://fontconfig.org

and I have no clue what's wrong with it, please help if you know.

thanks

marius


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to