Date: Fri, 24 Dec 2004 00:04:16 EST-10EDT,10,-1,0,7200,3,-1,0,7200,3600 Subject: [UnixOS2_Archive] No. 482 ************************************************** Thursday 23 December 2004 Number 482 ************************************************** Subjects for today 1 LIBC06 b2 nl_langinfo : lsunley at mb.sympatico.ca 2 postgreSQL v8.0 RC2 build : lsunley at mb.sympatico.ca **= Email 1 ==========================** Date: Wed, 22 Dec 2004 19:20:44 -0500 From: lsunley at mb.sympatico.ca Subject: LIBC06 b2 nl_langinfo Hi When I call nl_langinfo(CODESET) I get an empty string. What should I get? The program routine is static char * get_encoding_from_locale(const char *ctype) { char *save; char *sys; save = setlocale(LC_CTYPE, NULL); fprintf(stderr, "return from setlocale %s\n", save); if (!save) return NULL; save = xstrdup(save); setlocale(LC_CTYPE, ctype); sys = nl_langinfo(CODESET); fprintf(stderr, "return from nl_langinfo strlen=%d %s\n", strlen(sys), sys); sys = xstrdup(sys); setlocale(LC_CTYPE, save); free(save); return sys; } This is in postgreSQL (what else) where they determine the encoding to use for the database. In my case set LANG=en_US but de_DE also returns an empty string. When I was building the rc1 code, the configure routine had not found langinfo.h for some reason (probably because I ran configure with the GCC 3.3.5 B1 install) so this code was not compiled or used. When I ran configure for the just released rc2 code tree it found langinfo.h and is now trying to use this code. The nl_langinfo routine is new with LIBC 6 beta2 so I am guessing there is a problem somewhere... Lorne -- ----------------------------------------------------------- lsunley at mb.sympatico.ca ----------------------------------------------------------- **= Email 2 ==========================** Date: Wed, 22 Dec 2004 20:44:34 -0500 From: lsunley at mb.sympatico.ca Subject: postgreSQL v8.0 RC2 build Hi all, I out the RC2 code build for postgreSQL v8.0 on http://hobbes.nmsu.edu The file name is postgreSQL-8.0-rc2.zip Have fun.... PS - does anyone have a working build of wxwidgets 2.53 around. I would like to try porting the pgAdmin III administration front end for the database and it requires wxwidgets 2.53 (or maybe a volunteer would leap forth... :-) Thanks Lorne -- ----------------------------------------------------------- lsunley at mb.sympatico.ca -----------------------------------------------------------