LC_MESSAGES and BSD/OS

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: PostgreSQL-development <pgsql-hackers(at)postgreSQL(dot)org>
Subject: LC_MESSAGES and BSD/OS
Date: 2000-06-28 14:58:22
Message-ID: 200006281458.KAA07335@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Locale does not work on BSD/OS because it does not have LC_MESSAGES. I
just got this back from BSDI technical support. Comments?

---------------------------------------------------------------------------

In message <200006100115(dot)VAA06505(at)candle(dot)pha(dot)pa(dot)us>, Bruce Momjian writes:
>I assume the symbol is supposed to be defined in locale.h. HP-UX and
>other Unix's have this symbol, but BSDI doesn't. It is only used when
>PostgreSQL is compile with locale enabled.

>I see no mention of LC_MESSAGES in the include file or manual page.

LC_MESSAGES is apparently an extension; it's not in the POSIX spec, and it's
not in the C spec I have handy. (Admittedly, that's C99, but I don't think
anything like this was removed since C89.) So, recommend you #ifdef that;

#ifdef LC_MESSAGES
...[interact with LC_MESSAGES]
#endif

--
Bruce Momjian | http://www.op.net/~candle
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 853-3000
+ If your life is a hard drive, | 830 Blythe Avenue
+ Christ can be your backup. | Drexel Hill, Pennsylvania 19026

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2000-06-28 15:13:47 Re: AW: Big 7.1 open items
Previous Message Tom Lane 2000-06-28 14:57:52 Re: AW: Big 7.1 open items