glibc2+syslog+locale

Nikos Mavroyanopoulos ma06205 at cc.uoi.gr
Thu Oct 22 22:49:34 EEST 1998


Gia deite auto. Stin 2.0.6 otan LANG=el bgazei kati paraxena sto syslog.
Se libc5 symbainei auto? To paratirisa prosthetontas nls support stin 
shadow password suite. Fainetai san bug tis glibc2 h mipos yparxei
kapou lathos? (Tin shadow password suite me to nls kai ta ellinika tin exo
steilei sto incoming tou argea, ypopsin einai beta).
---
#include <stdio.h>
#include <syslog.h>
#include <locale.h>

main(int argc,char **argv)
{


      setlocale (LC_ALL, "");
      bindtextdomain ("test","/usr/local/share/locale");
      textdomain ("test");

openlog("test", LOG_PID|LOG_CONS|LOG_NOWAIT, LOG_AUTH);
syslog(LOG_ERR, "%s: hello",argv[0]);
closelog();
}

---
Nikos
--
====================================================================
Gia boithia (h na diagrafhte) e-mail sto majordomo at argos.hol.gr
Ta archives tis listas einai sto http://www.argos.hol.gr/lists :
prin steilete kapoia erothsh psakte mipos exei hdh apanththei.
Gia opoiodipote problima stilte e-mail ston owner-linux-greek-users
====================================================================



More information about the Linux-greek-users mailing list