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

Re: UPDATE: net/irssi-0.8.10



On Sunday 29 January 2006 13:27, Antti Harri wrote:
> On Sun, 29 Jan 2006, viq wrote:
> > I think I found where such autoconfiguration is done:
> > src/fe-common/core/fe-common-core.c line 178 and few following. At least
> > it
>
> [snip]
>
> I looked at it and there was a call to nl_langinfo().
> I wrote a test program to see what it outputs, here
> are there results:
>
> iku_(_at_)_openbsd:~/src$ cat test.c
> #include <nl_types.h>
> #include <langinfo.h>
> #include <stdio.h>
>
> int main (void)
> {
>          printf ("%s\n", nl_langinfo(CODESET));
>          return 0;
> }
> iku_(_at_)_openbsd:~/src$ ./test
> 646
>
>
> iku_(_at_)_kameli:~/src$ ./test
> ANSI_X3.4-1968
> iku_(_at_)_kameli:~/src$ uname
> Linux
>
> So it seems to me Irssi functions as it is supposed to,
> but nl_langinfo seems to give results that don't work with it.
> I don't have enough programming skills to continue either
> but maybe someone else has :-)

Hmm.
There's:
#define CODESET         51      /* Codeset name */
in 72nd line of /usr/include/langinfo.h

...not that it looks like having much to do with the problem.

BUT!
On linux i found this:
CODESET = _NL_CTYPE_CODESET_NAME
which is line 280 of /usr/include/langinfo.h
Besides, the whole file looks mighty different. 

My programming skills leave a lot to desire, so don't count on me to do 
something with it, but maybe that will help someone ;)

> --
> Antti Harri

-- 
viq

----------------------------------------------------------------------
Kobiety i samochody... piekne! >>> http://link.interia.pl/f18f5