Lines Matching refs:ccp
232 const char *ccp, **wp; in main_init() local
273 ccp = kshname; in main_init()
275 while ((i = ccp[argi++])) { in main_init()
277 ccp += argi; in main_init()
280 if (*ccp == '-') in main_init()
281 ++ccp; in main_init()
284 if (!*ccp) in main_init()
285 ccp = empty_argv[0]; in main_init()
309 if (!strcmp(ccp, builtin(mkshbuiltins[i].name, in main_init()
321 if (!strcmp(ccp, "sh" MKSH_EXE_EXT)) { in main_init()
585 l->argv[0] = ccp; in main_init()
602 ccp = null; in main_init()
608 ccp = setlocale(LC_CTYPE, ""); in main_init()
610 if (!isuc(ccp)) in main_init()
611 ccp = nl_langinfo(CODESET); in main_init()
613 if (!isuc(ccp)) in main_init()
614 ccp = null; in main_init()
621 if (ccp == null) in main_init()
622 ccp = str_val(global("LC_ALL")); in main_init()
623 if (ccp == null) in main_init()
624 ccp = str_val(global("LC_CTYPE")); in main_init()
625 if (ccp == null) in main_init()
626 ccp = str_val(global("LANG")); in main_init()
627 UTFMODE = isuc(ccp); in main_init()
2064 const char *ccp; in recheck_ctype() local
2067 ccp = str_val(global("LC_ALL")); in recheck_ctype()
2068 if (ccp == null) in recheck_ctype()
2069 ccp = str_val(global("LC_CTYPE")); in recheck_ctype()
2070 if (ccp == null) in recheck_ctype()
2071 ccp = str_val(global("LANG")); in recheck_ctype()
2072 UTFMODE = isuc(ccp); in recheck_ctype()
2074 ccp = setlocale(LC_CTYPE, ccp); in recheck_ctype()
2076 if (!isuc(ccp)) in recheck_ctype()
2077 ccp = nl_langinfo(CODESET); in recheck_ctype()
2079 if (isuc(ccp)) in recheck_ctype()