diff options
| author | Stefan Eßer <se@FreeBSD.org> | 2020-10-27 11:29:11 +0000 |
|---|---|---|
| committer | Stefan Eßer <se@FreeBSD.org> | 2020-10-27 11:29:11 +0000 |
| commit | 1f474190fc280d4a4ef0c214e4d7fff0d1237e22 (patch) | |
| tree | 123ca2f0a46ad9a1203a6b3c7a7a38c2a50854e6 /lib/libc | |
| parent | 7b39bef2cf93f6f0e79cc55a8ee2d339e42a6816 (diff) | |
Notes
Diffstat (limited to 'lib/libc')
| -rw-r--r-- | lib/libc/nls/msgcat.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/libc/nls/msgcat.c b/lib/libc/nls/msgcat.c index 5eb3273f7269f..090b4cc40ab6b 100644 --- a/lib/libc/nls/msgcat.c +++ b/lib/libc/nls/msgcat.c @@ -49,6 +49,7 @@ __FBSDID("$FreeBSD$"); #include <fcntl.h> #include <limits.h> #include <nl_types.h> +#include <paths.h> #include <pthread.h> #include <stdio.h> #include <stdlib.h> @@ -58,7 +59,9 @@ __FBSDID("$FreeBSD$"); #include "../locale/xlocale_private.h" -#define _DEFAULT_NLS_PATH "/usr/share/nls/%L/%N.cat:/usr/share/nls/%N/%L:/usr/local/share/nls/%L/%N.cat:/usr/local/share/nls/%N/%L" +#define _DEFAULT_NLS_PATH "/usr/share/nls/%L/%N.cat:/usr/share/nls/%N/%L:" \ + _PATH_LOCALBASE "/share/nls/%L/%N.cat:" \ + _PATH_LOCALBASE "/share/nls/%N/%L" #define RLOCK(fail) { int ret; \ if (__isthreaded && \ |
