/ast/src/cmd/ksh93/tests/ |
H A D | locale.sh | 39 [[ "$b" == "$a" ]] || err_exit "locale not restored after subshell -- expected '$a', got '$b'" 41 [[ "$b" == "$a" ]] || err_exit "locale not restored after subshell -- expected '$a', got '$b'" 47 for locale in $(PATH=/bin:/usr/bin locale -a 2>/dev/null | grep -i jis) 48 do export LC_ALL=$locale 54 [[ $b == "$n" ]] || err_exit "LC_ALL=$locale printf difference for \"$s\" -- expected '$n', got '$b'" 57 [[ $u == "$q" ]] || err_exit "LC_ALL=$locale quoted print difference for \"$s\" -- $b => '$u' vs \"$b\" => '$q'" 62 # this locale is supported by ast on all platforms 65 locale=C_EU.UTF-8 72 u=$(LC_ALL=$locale [all...] |
/ast/src/cmd/msgcc/ |
H A D | msgadmin.sh | 113 dir=$dir/lib/locale 117 for locale 118 do case $locale in 120 *) set -- *-$locale.msg ;; 123 then print -u2 "$command: $locale: no message files" 124 else nwd=$dir/$locale/LC_MESSAGES 132 *) name=${file%-$locale.msg} 137 then print -u2 $locale $name:
|
/ast/src/lib/libast/misc/ |
H A D | translate.c | 48 int debug; /* special debug locale */ 49 const char* locale; /* message catalog locale */ member in struct:__anon295 126 * find catalog in locale and return catopen() descriptor 130 find(const char* locale, const char* catalog) argument 136 if (!mcfind(locale, catalog, LC_MESSAGES, 0, path, sizeof(path)) || (d = catopen(path, NL_CAT_LOCALE)) == NOCAT) 138 if (locale == (const char*)lc_categories[AST_LC_MESSAGES].prev) 142 ast.locale.set |= AST_LC_internal; 143 setlocale(LC_MESSAGES, locale); 149 ast.locale [all...] |
/ast/src/lib/libast/string/ |
H A D | strerror.c | 115 ast.locale.set |= AST_LC_internal; 120 ast.locale.set &= ~AST_LC_internal;
|
/ast/src/cmd/re/ |
H A D | Makefile | 32 locale.dat testmatch.dat 35 match :TEST: testmatch.c testregex.dat locale.dat testmatch.dat 38 oldmatch :TEST: testoldmatch.c testregex.dat locale.dat testmatch.dat 41 regex :TEST: testregex.c testregex.dat locale.dat testmatch.dat testsub.dat \ 61 locale.dat rxposix.dat
|
H A D | testfnmatch.c | 47 #include <locale.h> 107 H(" C set LC_COLLATE and LC_CTYPE to locale in field 2\n"); 486 int locale = 0; local 598 locale = skip = testno = 0; 675 bad("locale query expected\n", NiL, NiL, 0); 677 if (locale) 678 bad("locale nesting not supported\n", NiL, NiL, 0); 680 bad("locale field expected\n", NiL, NiL, 0); 691 printf("NOTE \"%s\" locale\n", s); 692 locale [all...] |
H A D | testmatch.c | 49 #include <locale.h> 117 H(" C set LC_COLLATE and LC_CTYPE to locale in field 2\n"); 617 int locale = 0; local 733 locale = skip = testno = 0; 808 bad("locale query expected\n", NiL, NiL, 0); 814 if (locale) 815 bad("locale nesting not supported\n", NiL, NiL, 0); 817 bad("locale field expected\n", NiL, NiL, 0); 828 printf("NOTE \"%s\" locale\n", s); 829 locale [all...] |
H A D | testglob.c | 70 #include <locale.h> 135 H(" C set LC_COLLATE and LC_CTYPE to the locale in field 2\n"); 539 int locale = 0; local 783 bad("locale query expected\n", NiL); 785 if (locale) 786 bad("locale nesting not supported\n", NiL); 788 bad("locale field expected\n", NiL); 797 printf("NOTE \"%s\" locale\n", s); 798 locale = level; 880 else if (locale [all...] |
H A D | testregex.c | 55 #include <locale.h> 249 T(" C set LC_COLLATE and LC_CTYPE to locale in field 2\n"); 1234 int locale; local 1341 locale = 0; 1556 bad("locale query expected\n", NiL, NiL, 0, 0); 1558 if (locale) 1559 bad("locale nesting not supported\n", NiL, NiL, 0, 0); 1561 bad("locale field expected\n", NiL, NiL, 0, 0); 1579 printf("NOTE \"%s\" locale\n", s); 1580 locale [all...] |
/ast/src/cmd/std/ |
H A D | Makefile | 21 locale :: locale.c 55 :TEST: csplit dd locale ls seq touch tsort
|
/ast/src/cmd/tests/sfio/ |
H A D | tlocale.c | 22 #include <locale.h>
|
/ast/src/lib/libast/regex/ |
H A D | regcache.c | 51 char* locale; member in struct:State_s 119 * flush the cache if the locale changed 124 if ((s = setlocale(LC_CTYPE, NiL)) != matchstate.locale) 126 matchstate.locale = s;
|
/ast/src/lib/libast/path/ |
H A D | pathexists.c | 67 if ((ast.locale.set & (AST_LC_debug|AST_LC_find)) == (AST_LC_debug|AST_LC_find)) 68 sfprintf(sfstderr, "locale test %s\n", path); 95 if ((ast.locale.set & (AST_LC_debug|AST_LC_find)) == (AST_LC_debug|AST_LC_find)) 96 sfprintf(sfstderr, "locale stat %s\n", path);
|
/ast/src/lib/libast/port/ |
H A D | mc.c | 49 * find the binary message catalog path for <locale,catalog> 57 mcfind(const char* locale, const char* catalog, int category, int nls, char* path, size_t size) argument 77 if (!(lc = locale ? lcmake(locale) : locales[category])) 92 paths[i++] = "share/lib/locale/%l/%C/%N"; 93 paths[i++] = "share/locale/%l/%C/%N"; 94 paths[i++] = "lib/locale/%l/%C/%N"; 188 if (ast.locale.set & AST_LC_find) 189 sfprintf(sfstderr, "locale find %s\n", file); 192 if (ast.locale [all...] |
H A D | lc.c | 25 * locale state implementation 30 #include "FEATURE/locale" 40 #undef setlocale /* this file deals with the system locale */ 380 * generate a canonical locale name in buf 415 * make an Lc_t from a locale name 546 if ((ast.locale.set & AST_LC_debug) && !(ast.locale.set & AST_LC_internal)) 547 sfprintf(sfstderr, "locale make %s language=%s territory=%s charset=%s attributes=%s\n", name, language_name, territory_name, charset_name, attributes_name); 744 if ((ast.locale.set & AST_LC_debug) && !(ast.locale [all...] |
/ast/src/cmd/3d/ |
H A D | strmatch.c | 165 #define mbgetchar(p) ((ast.locale.set&LC_SET_CTYPE)?((ast.tmp_int=mbtowc(&ast.tmp_wchar,p,MB_CUR_MAX))>=0?((p+=ast.tmp_int),ast.tmp_wchar):0):(*p++)) 468 if (ast.locale.set & LC_SET_COLLATE) 566 else if (ast.locale.set & LC_SET_COLLATE) 619 else if (range && !(ast.locale.set & LC_SET_COLLATE)) 626 if (ast.locale.set & LC_SET_CTYPE) 670 if (ast.locale.set & LC_SET_COLLATE) ok = -1;
|
/ast/src/lib/libast/include/ |
H A D | error.h | 57 #define ERROR_translating() (error_info.translate&&(ast.locale.set&(1<<AST_LC_MESSAGES)))
|
H A D | ast_std.h | 79 /* locale stuff */ 232 } locale; member in struct:__anon265
|
/ast/src/cmd/tests/ |
H A D | opt.c | 79 translate(const char* locale, const char* id, const char* catalog, const char* msg) argument 197 ast.locale.set |= (1<<AST_LC_MESSAGES);
|
H A D | strtof.c | 44 #include <locale.h>
|
H A D | strtoi.c | 43 #include <locale.h>
|
/ast/src/lib/libast/astsa/ |
H A D | ast.h | 61 } locale; member in struct:__anon244
|
/ast/src/lib/libast/comp/ |
H A D | catopen.c | 114 if ((s || *name == '/') && (ast.locale.set & (1<<AST_LC_MESSAGES)))
|
H A D | setlocale.c | 27 * and a permanent locale namespace for pointer comparison 28 * and persistent private data for locale related functions 80 sfprintf(sfstderr, "locale %17s %16s %16s %16s %s\n", "CATEGORY", "AST", "SYSTEM", "PREVIOUS", "ATTRIBUTES"); 96 * convert locale to native locale name in buf 100 native_locale(const char* locale, char* buf, size_t siz) argument 111 if (locale && *locale) 113 if (!(lc = lcmake(locale))) 150 * locale! 154 native_setlocale(int category, const char* locale) argument 2384 default_setlocale(int category, const char* locale) argument 2411 _sys_setlocale(int category, const char* locale) argument 2674 _ast_setlocale(int category, const char* locale) argument [all...] |
/ast/src/lib/libast/tm/ |
H A D | tmlocale.c | 42 Lc_info_t* locale; member in struct:__anon313 338 * load the native LC_TIME data for the current locale 550 * load the LC_TIME data for the current locale 624 * check that tm_info.format matches the current locale
|