At 16:22 11.01.99 , Marcus J. Ertl wrote:
>On Mon, 11 Jan 1999 12:31:22 +0100, Alexander Bergolth wrote:
>>Are you sure that iso_8859_1 is a valid locale on your system?
>how can I test it??????

In the current CVS-tree htdig -v prints a warning if the selected locale is
not supported by the system.

You should look at the setlocale (3) man page for information where the
locale information files are stored on your system or write a small C
program like the following that tests the return code of the setlocale call.

---------- snipp! ----------
#include <locale.h>
#include <stdio.h>

main(int argc, char **argv)
{
  char *rc;
  if (argc != 2)
  {
    printf("Usage: localetest locale\n");
    exit(1);
  }

  printf("Testing %s\n", argv[1]);
  rc= setlocale(LC_ALL, argv[1]);
  if (rc== NULL)
    printf("locale \"%s\" not supported!\n", argv[1]);
  else
    printf("locale set to \"%s\".\n", rc);
  exit(0);
}
---------- snipp! ----------

Bye,
      Leo
-----------------------------------------------------------------------
Alexander (Leo) Bergolth                          [EMAIL PROTECTED]
WU-Wien - Zentrum fuer Informatikdienste       http://leo.wu-wien.ac.at
Info Center
In a world without walls and fences, who needs windows and gates?

----------------------------------------------------------------------
To unsubscribe from the htdig mailing list, send a message to
[EMAIL PROTECTED] containing the single word "unsubscribe" in
the body of the message.

Reply via email to