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 :-)

--
Antti Harri

Reply via email to