diff options
author | Juergen Kahrs <Juergen.Kahrs@googlemail.com> | 2013-04-28 19:30:52 +0200 |
---|---|---|
committer | Juergen Kahrs <Juergen.Kahrs@googlemail.com> | 2013-04-28 19:30:52 +0200 |
commit | 11c996c675afa475d46834b2b09039097e25afb5 (patch) | |
tree | 8e720e41b15affe811b21d74bddba14c302612fa /main.c | |
parent | 74db9f3cb12c4c45487b8646473daad7d0df641f (diff) | |
parent | 1dd19986291bdd1129ac08eec40d963a65170422 (diff) | |
download | egawk-11c996c675afa475d46834b2b09039097e25afb5.tar.gz egawk-11c996c675afa475d46834b2b09039097e25afb5.tar.bz2 egawk-11c996c675afa475d46834b2b09039097e25afb5.zip |
Merge remote-tracking branch 'origin/master' into cmake
Conflicts:
README_d/ChangeLog
Diffstat (limited to 'main.c')
-rw-r--r-- | main.c | 16 |
1 files changed, 16 insertions, 0 deletions
@@ -261,6 +261,17 @@ main(int argc, char **argv) */ gawk_mb_cur_max = MB_CUR_MAX; /* Without MBS_SUPPORT, gawk_mb_cur_max is 1. */ +#ifdef LIBC_IS_BORKED +{ + const char *env_lc; + + env_lc = getenv("LC_ALL"); + if (env_lc == NULL) + env_lc = getenv("LANG"); + if (env_lc != NULL && env_lc[1] == '\0' && tolower(env_lc[0]) == 'c') + gawk_mb_cur_max = 1; +} +#endif /* init the cache for checking bytes if they're characters */ init_btowc_cache(); @@ -1118,6 +1129,11 @@ load_procinfo() update_PROCINFO_num("prec_min", MPFR_PREC_MIN); #endif +#ifdef DYNAMIC + update_PROCINFO_num("api_major", GAWK_API_MAJOR_VERSION); + update_PROCINFO_num("api_minor", GAWK_API_MINOR_VERSION); +#endif + #ifdef GETPGRP_VOID #define getpgrp_arg() /* nothing */ #else |