Re: UCS-2 in gunicode.h



Joe Shaw <joe@helixcode.com> writes:
> > 
> > I think we're just going to add a function like this to glib:
> > 
> > gchar*
> > g_convert (const gchar *str,
> >            gint         len,
> >            const gchar *to_codeset,
> >            const gchar *from_codeset,
> >            gint        *bytes_converted)
> 
> Why are the codesets gchar *s and not an enumerated type like
> GLIB_CODESET_UCS_2 or whatever?
> 

iconv() does it that way. I think there are about a zillion codesets,
not all of them supported on all systems, and you don't want to break
source compat when a new one is added.

Havoc





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]