diff options
author | phantom <phantom@FreeBSD.org> | 2005-02-01 08:48:15 +0000 |
---|---|---|
committer | phantom <phantom@FreeBSD.org> | 2005-02-01 08:48:15 +0000 |
commit | 110a2bf37caf229d48df394070aebe21f3ebbf1d (patch) | |
tree | ea50c15580e71a5fa8f8b9ce18e674bf3762f2b0 /bin | |
parent | 7da1992a2abaadecf40180c27a55f6f3aab3c555 (diff) | |
download | FreeBSD-src-110a2bf37caf229d48df394070aebe21f3ebbf1d.zip FreeBSD-src-110a2bf37caf229d48df394070aebe21f3ebbf1d.tar.gz |
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
Diffstat (limited to 'bin')
-rw-r--r-- | bin/csh/config.h | 2 | ||||
-rw-r--r-- | bin/csh/config_p.h | 2 |
2 files changed, 4 insertions, 0 deletions
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__) |