Bug#611625: libglib2.0: g_utf16_to_ucs4 performs incorrectly

alex bodnaru alexbodn at 012.net.il
Mon Jan 31 12:15:40 UTC 2011


Package: libglib2.0-0
Version: 2.24.2-1
Severity: normal
File: libglib2.0


hello friends,

that's an upstream bug, probably. please report there.

look at my code:

    glong read2, written2;
    GError *error = NULL;
    const wchar_t *ws = L"\x0428\x04d9\x043d\x0431\x04d9";
    gchar *conv2 = g_utf16_to_utf8(ws, -1, &read2, &written2, &gerror);
    gunichar *ws2 = g_utf16_to_ucs4(ws, -1, &read2, &written2, &gerror);
    /*ws2 should be: {0x0428,0x04d9,0x043d,0x0431,0x04d9}
    but it's not.*/

best regards,
alex

-- System Information:
Debian Release: 6.0
  APT prefers testing
  APT policy: (990, 'testing'), (300, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)

Kernel: Linux 2.6.32-5-686 (SMP w/2 CPU cores)
Locale: LANG=he_IL.utf8, LC_CTYPE=he_IL.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages libglib2.0-0 depends on:
ii  libc6                   2.11.2-10        Embedded GNU C Library: Shared lib
ii  libpcre3                8.02-1.1         Perl 5 Compatible Regular Expressi
ii  libselinux1             2.0.96-1         SELinux runtime shared libraries
ii  zlib1g                  1:1.2.3.4.dfsg-3 compression library - runtime

Versions of packages libglib2.0-0 recommends:
ii  libglib2.0-data               2.24.2-1   Common files for GLib library
ii  shared-mime-info              0.71-4     FreeDesktop.org shared MIME databa

libglib2.0-0 suggests no packages.

-- no debconf information






More information about the pkg-gnome-maintainers mailing list