From 110a2bf37caf229d48df394070aebe21f3ebbf1d Mon Sep 17 00:00:00 2001 From: phantom Date: Tue, 1 Feb 2005 08:48:15 +0000 Subject: 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 PR: bin/76773 MFC After: 3 days --- bin/csh/config.h | 2 ++ bin/csh/config_p.h | 2 ++ 2 files changed, 4 insertions(+) (limited to 'bin/csh') diff --git a/bin/csh/config.h b/bin/csh/config.h index e82478e..9e120e9 100644 --- a/bin/csh/config.h +++ b/bin/csh/config.h @@ -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__) diff --git a/bin/csh/config_p.h b/bin/csh/config_p.h index e82478e..9e120e9 100644 --- a/bin/csh/config_p.h +++ b/bin/csh/config_p.h @@ -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__) -- cgit v1.1