[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Unconditional use of LC_MESSAGES ISO C extension

From: Juan Manuel Guerrero
Subject: Unconditional use of LC_MESSAGES ISO C extension
Date: Tue, 28 Aug 2007 21:38:18 +0200
User-agent: KMail/1.9.5

I have tried to compile texinfo-4.9.91 with djgpp 2.04.
The compilation step fails due to the inconditional use of LC_MESSAGES.
djgpp implements the locale categories but not the LC_MESSAGES extension.
The code snippet below from info.c is the one that make compilation fail:

  /* Set locale via LC_ALL.  */
  setlocale (LC_ALL, "");
  /* But don't use translated messages in the case when
     string width and length can differ */
  if (MB_CUR_MAX > 1)
    setlocale(LC_MESSAGES, "C");

The failure is the consequence of the assumption that an implementation
of setlocale would automatically imply the existance of the LC_MESSAGES
ISO C extension.  Code like the above may repeat somewhere else in texinfo.
I have not searched for more occurences.  The question arieses if this
could be fixed with something like a HAVE_LC_MESSAGES test or something
similar.  I can not contribute with a solution but I wanted to call your
attention about this issue anyway.  May be that some other implementation
of setlocale without LC_MESSAGES.

Juan M. Guerrero

reply via email to

[Prev in Thread] Current Thread [Next in Thread]