Hi all,
I'm running IDS on RHL 9.
I wrote the following simple EC program:
int main (argc, argv)
int argc;
char *argv[];
{
printf ("Start\n");
EXEC SQL connect to "mydb";
printf ("<%d>\n", SQLCODE);
}
When I run this program, I get the error:
-23101: Unable to load locale categories
I can access mydb through dbaccess, but I cannot connect using this program.
* INFORMIXDIR and INFORMIXSERVER are correctly point to the Informix directory and server respectively.
* LD_LIBRARY_PATH is pointing to $INFORMIXDIR/lib and $INFORMIXDIR/lib/esql
* PATH does point to $INFORMIXDIR/bin.
* DB_LOCALE, CLIENT_LOCALE, SERVER_LOCALE and DBLANG are all set to blank (unset). In this case, en_us.8859-1 is the default.
* When I run the Linux shell command 'locale', I get the following:
LANG=en_US.UTF-8
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_COLLATE="en_US.UTF-8"
LC_MONETARY="en_US.UTF-8"
LC_MESSAGES="en_US.UTF-8"
LC_PAPER="en_US.UTF-8"
LC_NAME="en_US.UTF-8"
LC_ADDRESS="en_US.UTF-8"
LC_TELEPHONE="en_US.UTF-8"
LC_MEASUREMENT="en_US.UTF-8"
LC_IDENTIFICATION="en_US.UTF-8"
LC_ALL=
* I tried to set the 4 environment variables above (DB_LOCALE, CLIENT_LOCALE, SERVER_LOCALE and DBLANG) to en_us.8859-1, en_US.UTF-8, (blank), en_us.ISO8859-1, en_us.cp1252, but nothing seemed to help.
Any clue to what I can do to get this fixed?
Thanks,
RH