mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-09-04 10:41:11 +02:00
zsh-workers/8372
This commit is contained in:
parent
da00a39290
commit
97fa7e4889
6 changed files with 25 additions and 6 deletions
1
INSTALL
1
INSTALL
|
@ -358,3 +358,4 @@ Features:
|
||||||
function-subdirs # if functions will be installed into subdirectories
|
function-subdirs # if functions will be installed into subdirectories
|
||||||
dynamic # allow dynamically loaded binary modules
|
dynamic # allow dynamically loaded binary modules
|
||||||
lfs # allow configure check for large files
|
lfs # allow configure check for large files
|
||||||
|
locale # allow use of locale library
|
||||||
|
|
|
@ -35,7 +35,7 @@ int
|
||||||
main(int argc, char **argv)
|
main(int argc, char **argv)
|
||||||
{
|
{
|
||||||
char **t;
|
char **t;
|
||||||
#ifdef LC_ALL
|
#ifdef USE_LOCALE
|
||||||
setlocale(LC_ALL, "");
|
setlocale(LC_ALL, "");
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
|
@ -146,7 +146,7 @@ IPDEF2("WORDCHARS", wordcharsgetfn, wordcharssetfn, 0),
|
||||||
IPDEF2("IFS", ifsgetfn, ifssetfn, PM_DONTIMPORT),
|
IPDEF2("IFS", ifsgetfn, ifssetfn, PM_DONTIMPORT),
|
||||||
IPDEF2("_", underscoregetfn, nullsetfn, PM_READONLY),
|
IPDEF2("_", underscoregetfn, nullsetfn, PM_READONLY),
|
||||||
|
|
||||||
#ifdef LC_ALL
|
#ifdef USE_LOCALE
|
||||||
# define LCIPDEF(name) IPDEF2(name, strgetfn, lcsetfn, PM_UNSET)
|
# define LCIPDEF(name) IPDEF2(name, strgetfn, lcsetfn, PM_UNSET)
|
||||||
IPDEF2("LANG", strgetfn, langsetfn, PM_UNSET),
|
IPDEF2("LANG", strgetfn, langsetfn, PM_UNSET),
|
||||||
IPDEF2("LC_ALL", strgetfn, lc_allsetfn, PM_UNSET),
|
IPDEF2("LC_ALL", strgetfn, lc_allsetfn, PM_UNSET),
|
||||||
|
@ -162,7 +162,7 @@ LCIPDEF("LC_MESSAGES"),
|
||||||
# ifdef LC_TIME
|
# ifdef LC_TIME
|
||||||
LCIPDEF("LC_TIME"),
|
LCIPDEF("LC_TIME"),
|
||||||
# endif
|
# endif
|
||||||
#endif
|
#endif /* USE_LOCALE */
|
||||||
|
|
||||||
#define IPDEF4(A,B) {NULL,A,PM_INTEGER|PM_READONLY|PM_SPECIAL,BR((void *)B),SFN(nullsetfn),GFN(intvargetfn),stdunsetfn,10,NULL,NULL,NULL,0}
|
#define IPDEF4(A,B) {NULL,A,PM_INTEGER|PM_READONLY|PM_SPECIAL,BR((void *)B),SFN(nullsetfn),GFN(intvargetfn),stdunsetfn,10,NULL,NULL,NULL,0}
|
||||||
IPDEF4("!", &lastpid),
|
IPDEF4("!", &lastpid),
|
||||||
|
@ -2444,7 +2444,7 @@ ifssetfn(Param pm, char *x)
|
||||||
|
|
||||||
/* Functions to set value of special parameters `LANG' and `LC_*' */
|
/* Functions to set value of special parameters `LANG' and `LC_*' */
|
||||||
|
|
||||||
#ifdef LC_ALL
|
#ifdef USE_LOCALE
|
||||||
static struct localename {
|
static struct localename {
|
||||||
char *name;
|
char *name;
|
||||||
int category;
|
int category;
|
||||||
|
@ -2511,7 +2511,7 @@ lcsetfn(Param pm, char *x)
|
||||||
if (!strcmp(ln->name, pm->nam))
|
if (!strcmp(ln->name, pm->nam))
|
||||||
setlocale(ln->category, x ? x : "");
|
setlocale(ln->category, x ? x : "");
|
||||||
}
|
}
|
||||||
#endif
|
#endif /* USE_LOCALE */
|
||||||
|
|
||||||
/* Function to get value for special parameter `HISTSIZE' */
|
/* Function to get value for special parameter `HISTSIZE' */
|
||||||
|
|
||||||
|
|
|
@ -632,3 +632,9 @@ extern short ospeed;
|
||||||
#undef ESRCH
|
#undef ESRCH
|
||||||
#define ESRCH EINVAL
|
#define ESRCH EINVAL
|
||||||
#endif /* BROKEN_KILL_ESRCH */
|
#endif /* BROKEN_KILL_ESRCH */
|
||||||
|
|
||||||
|
/* Can we do locale stuff? */
|
||||||
|
#undef USE_LOCALE
|
||||||
|
#if defined(CONFIG_LOCALE) && defined(HAVE_SETLOCALE) && defined(LC_ALL)
|
||||||
|
# define USE_LOCALE 1
|
||||||
|
#endif /* CONFIG_LOCALE && HAVE_SETLOCALE && LC_ALL */
|
||||||
|
|
|
@ -166,6 +166,9 @@
|
||||||
/* Define for Maildir support */
|
/* Define for Maildir support */
|
||||||
#undef MAILDIR_SUPPORT
|
#undef MAILDIR_SUPPORT
|
||||||
|
|
||||||
|
/* Define if you want locale features. By default this is defined. */
|
||||||
|
#undef CONFIG_LOCALE
|
||||||
|
|
||||||
/* Define to 1 if your termcap library has the ospeed variable */
|
/* Define to 1 if your termcap library has the ospeed variable */
|
||||||
#undef HAVE_OSPEED
|
#undef HAVE_OSPEED
|
||||||
/* Define to 1 if you have ospeed, but it is not defined in termcap.h */
|
/* Define to 1 if you have ospeed, but it is not defined in termcap.h */
|
||||||
|
|
11
configure.in
11
configure.in
|
@ -201,6 +201,15 @@ fi],
|
||||||
AC_DEFINE(RESTRICTED_R)
|
AC_DEFINE(RESTRICTED_R)
|
||||||
)
|
)
|
||||||
|
|
||||||
|
dnl Do you want to disable use of locale functions
|
||||||
|
AC_ARG_ENABLE([locale],
|
||||||
|
[ --disable-locale turn off locale features],
|
||||||
|
[if test x$enableval = xyes; then
|
||||||
|
AC_DEFINE(CONFIG_LOCALE)
|
||||||
|
fi],
|
||||||
|
AC_DEFINE(CONFIG_LOCALE)
|
||||||
|
)
|
||||||
|
|
||||||
undefine([fndir])dnl
|
undefine([fndir])dnl
|
||||||
AC_ARG_ENABLE(fndir,
|
AC_ARG_ENABLE(fndir,
|
||||||
[ --enable-fndir=DIR where functions go (default DATADIR/zsh/functions)],
|
[ --enable-fndir=DIR where functions go (default DATADIR/zsh/functions)],
|
||||||
|
@ -774,7 +783,7 @@ AC_CHECK_FUNCS(memcpy memmove \
|
||||||
sigprocmask setuid seteuid setreuid setresuid setsid strerror \
|
sigprocmask setuid seteuid setreuid setresuid setsid strerror \
|
||||||
nis_list initgroups fchdir cap_get_proc readlink nice \
|
nis_list initgroups fchdir cap_get_proc readlink nice \
|
||||||
getgrgid getgrnam getpwent getpwnam getpwuid setpgrp \
|
getgrgid getgrnam getpwent getpwnam getpwuid setpgrp \
|
||||||
fseeko ftello mmap munmap msync ftruncate)
|
fseeko ftello mmap munmap msync ftruncate setlocale)
|
||||||
|
|
||||||
dnl ---------------
|
dnl ---------------
|
||||||
dnl CHECK FUNCTIONS
|
dnl CHECK FUNCTIONS
|
||||||
|
|
Loading…
Reference in a new issue