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: > > [EMAIL PROTECTED]:~/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; > } > [EMAIL PROTECTED]:~/src$ ./test > 646 > > > [EMAIL PROTECTED]:~/src$ ./test > ANSI_X3.4-1968 > [EMAIL PROTECTED]:~/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