Re: gettext implementation for glib
- From: Havoc Pennington <hp redhat com>
- To: Sven Neumann <sven gimp org>
- Cc: Alex Larsson <alexl redhat com>, <gtk-devel-list gnome org>
- Subject: Re: gettext implementation for glib
- Date: 03 Aug 2001 10:02:12 -0400
Sven Neumann <sven gimp org> writes:
> Hi,
>
> Alex Larsson <alexl redhat com> writes:
>
> > +static const char *
> > +get_locale (void)
> > +{
> > + const char *locale;
> > +
> > + locale = g_getenv ("LANG");
> > + if (locale)
> > + return locale;
> > +
> > + return "en_US";
> ^^^^^
> I'm not sure, but shouldn't that return "C" ?!
I think it should just call setlocale() to get the locale, instead of
trying to guess. ;-)
Havoc
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]