pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

pkg/39765: glib2 does not support WCHAR_T conversion using built-in iconv on NetBSD

>Number:         39765
>Category:       pkg
>Synopsis:       glib2 does not support WCHAR_T conversion using built-in iconv 
>on NetBSD
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Oct 18 23:15:00 +0000 2008
>Originator:     Jared D. McNeill
>Release:        NetBSD 4.99.73
System: NetBSD 4.99.73 NetBSD 4.99.73 (GENERIC) #10: Sat Oct 
18 12:27:54 EDT 2008
Architecture: x86_64
Machine: amd64
        g_convert fails when trying to convert to or from WCHAR_T on NetBSD
        because of limitations in the system iconv implementation. glibmm
        uses this in its ustring class implementation, so any application
        using glibmm will fail.
        Build the following application on NetBSD:

        $ cc glibconvert.c -o glibconvert `pkg-config --cflags --libs glib-2.0`
        $ ./glibconvert

        ** (process:5615): WARNING **: g_convert failed: Conversion from 
character set 'UTF-8' to 'WCHAR_T' is not supported

        The same application works fine on Linux:

        $ ./glibconvert 
        ** Message: g_convert success

/* g_convert test application */
#include <glib.h>

        GError *gerror = NULL;
        gsize read, written;
        gchar *convstr;

        convstr = g_convert("hello", 5,
                            "WCHAR_T", "UTF-8", &read, &written,
        if (convstr == NULL)
                g_warning("g_convert failed: %s\n", gerror->message);
                g_message("g_convert success\n");
        return 0;



Home | Main Index | Thread Index | Old Index