Subject: Re: GLib conversion failure on OpenBSD when building gtk2
To: Tobias Nygren <tnn@netilium.org>
From: Alexander Nasonov <alnsn@yandex.ru>
List: pkgsrc-users
Date: 05/12/2007 22:59:12
Alexander Nasonov wrote:
> "646" is not hardcoded in nl_langinfo but I'm not very interested in
> digging OpenBSD code. Maybe my system can be reconfigured to return a
> good "ASCII" value, I don't know.

It took me a minute to find a hardcoded "646" with ctags ;)

1. in nl_langinfo: s =_CurrentRuneLocale->rl_codeset;
2. _RuneLocale *_CurrentRuneLocale = &_DefaultRuneLocale;
3. "646" is in initializer list of _DefaultRuneLocale !

A value of _CurrentRuneLocale can be changed with _xpg4_setrunelocale
but I don't know anything about it.
-- 
Alexander Nasonov
http://nasonov.blogspot.com