Use LC_MESSAGES locale category instead of value of LANG environment variable

while opening of tcsh's message catalog.  It gives us more flexibility, and
do not change current behaviour (since we call setlocale() here)

Submitted by:	Rostislav Krasny <rosti_bsd@yahoo.com>
PR:		bin/76773
MFC After:	3 days
This commit is contained in:
Alexey Zelkin 2005-02-01 08:48:15 +00:00
parent 7c61c21042
commit 2b40ba25cc
2 changed files with 4 additions and 0 deletions

View File

@ -130,6 +130,8 @@
/* we want to use the system malloc when we install as /bin/csh */
#define SYSMALLOC
#define BSD_STYLE_COLORLS
/* Use LC_MESSAGES locale category used to open the message catalog */
#define MCLoadBySet NL_CAT_LOCALE
#endif
#if defined(__NetBSD__)

View File

@ -130,6 +130,8 @@
/* we want to use the system malloc when we install as /bin/csh */
#define SYSMALLOC
#define BSD_STYLE_COLORLS
/* Use LC_MESSAGES locale category used to open the message catalog */
#define MCLoadBySet NL_CAT_LOCALE
#endif
#if defined(__NetBSD__)