Re: UCS-2 in gunicode.h
- From: Havoc Pennington <hp redhat com>
- To: Joe Shaw <joe helixcode com>
- Cc: Derek Simkowiak <dereks kd-dev com>, gtk-devel-list gnome org
- Subject: Re: UCS-2 in gunicode.h
- Date: 07 Jul 2000 18:00:02 -0400
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]