Skip site navigation (1) Skip section navigation (2)

Re: LC_MESSAGES and BSD/OS

From: Giles Lean <giles(at)nemeton(dot)com(dot)au>
To: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
Cc: PostgreSQL-development <pgsql-hackers(at)postgreSQL(dot)org>
Subject: Re: LC_MESSAGES and BSD/OS
Date: 2000-06-28 18:43:26
Message-ID: 6900.962217806@nemeton.com.au (view raw or flat)
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?

...

| 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

POSIX and ANSI C have the following categories:

LC_ALL
LC_COLLATE
LC_CTYPE
LC_MONETARY
LC_NUMERIC
LC_TIME

"Implementation defined additional categories" are allowed, and it
looks like many (most?) implementations use LC_MESSAGES, but they
don't have to, I guess.

Regards,

Giles

Responses

pgsql-hackers by date

Next:From: Bruce MomjianDate: 2000-06-28 18:46:13
Subject: Re: LC_MESSAGES and BSD/OS
Previous:From: Peter EisentrautDate: 2000-06-28 18:38:08
Subject: Re: 7.0.2 on Solaris

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group