Home
last modified time | relevance | path

Searched refs:codeset (Results 1 – 25 of 54) sorted by relevance

123

/third_party/popt/src/
Dpoptint.c48 char * codeset = NULL; in POPT_dgettext() local
53 codeset = bind_textdomain_codeset(dom, NULL); in POPT_dgettext()
56 bind_textdomain_codeset(dom, codeset); in POPT_dgettext()
71 char * codeset = NULL; in strdup_locale_from_utf8() local
79 codeset = nl_langinfo ((nl_item)CODESET); in strdup_locale_from_utf8()
82 if (codeset != NULL && strcmp(codeset, "UTF-8") != 0 in strdup_locale_from_utf8()
83 && (cd = iconv_open(codeset, "UTF-8")) != (iconv_t)-1) in strdup_locale_from_utf8()
/third_party/python/Lib/
Dgettext.py228 codeset = loc[pos:]
232 codeset = ''
246 if i & COMPONENT_CODESET: val += codeset
584 class_=None, fallback=False, codeset=_unspecified): argument
610 if codeset is not _unspecified:
614 if codeset:
618 t.set_output_charset(codeset)
626 def install(domain, localedir=None, codeset=_unspecified, names=None): argument
627 t = translation(domain, localedir, fallback=True, codeset=codeset)
654 def bind_textdomain_codeset(domain, codeset=None): argument
[all …]
/third_party/libexif/test/nls/
DMakefile.am3 codeset_tests = test-codeset-default test-codeset-latin1 test-codeset-utf-8
30 EXTRA_DIST = check-localedir.in check-nls.in test-nls.c test-codeset.c
Dtest-nls.c72 const char *codeset = bind_textdomain_codeset(GETTEXT_PACKAGE, "UTF-8"); in main() local
73 printf("message codeset: %s\n", codeset); in main()
Dtest-codeset.c33 #define bind_textdomain_codeset(domain,codeset) \ argument
/third_party/musl/src/locale/
Dbind_textdomain_codeset.c6 char *bind_textdomain_codeset(const char *domainname, const char *codeset) in bind_textdomain_codeset() argument
8 if (codeset && strcasecmp(codeset, "UTF-8")) in bind_textdomain_codeset()
/third_party/python/Modules/clinic/
D_localemodule.c.h497 const char *codeset);
504 const char *codeset; in _locale_bind_textdomain_codeset() local
523 codeset = NULL; in _locale_bind_textdomain_codeset()
527 codeset = PyUnicode_AsUTF8AndSize(args[1], &codeset_length); in _locale_bind_textdomain_codeset()
528 if (codeset == NULL) { in _locale_bind_textdomain_codeset()
531 if (strlen(codeset) != (size_t)codeset_length) { in _locale_bind_textdomain_codeset()
540 return_value = _locale_bind_textdomain_codeset_impl(module, domain, codeset); in _locale_bind_textdomain_codeset()
/third_party/python/Modules/
D_localemodule.c761 const char *codeset) in _locale_bind_textdomain_codeset_impl() argument
764 codeset = bind_textdomain_codeset(domain, codeset); in _locale_bind_textdomain_codeset_impl()
765 if (codeset) { in _locale_bind_textdomain_codeset_impl()
766 return PyUnicode_DecodeLocale(codeset, NULL); in _locale_bind_textdomain_codeset_impl()
D_cursesmodule.c680 const char *codeset = nl_langinfo(CODESET); in Window_NoArgNoReturnFunction()
681 if (codeset != NULL && codeset[0] != 0) in Window_NoArgNoReturnFunction()
682 encoding = codeset; in Window_NoArgNoReturnFunction()
/third_party/python/Python/
Dfileutils.c203 const char *codeset = nl_langinfo(CODESET); in check_force_ascii() local
204 if (!codeset || codeset[0] == '\0') { in check_force_ascii()
210 if (!_Py_normalize_encoding(codeset, encoding, sizeof(encoding))) { in check_force_ascii()
945 char* codeset = nl_langinfo(CODESET); in _Py_LocaleUsesNonUnicodeWchar() local
946 if (!codeset) { in _Py_LocaleUsesNonUnicodeWchar()
950 return (strcmp(codeset, "UTF-8") != 0 && strcmp(codeset, "646") != 0); in _Py_LocaleUsesNonUnicodeWchar()
Dpylifecycle.c356 char *codeset = nl_langinfo(CODESET); in _Py_CoerceLegacyLocale() local
357 if (!codeset || *codeset == '\0') { in _Py_CoerceLegacyLocale()
/third_party/libexif/m4m/
D.gitignore4 codeset.m4
/third_party/libexif/po/
DPOTFILES.in16 test/nls/test-codeset.c
/third_party/node/deps/icu-small/source/common/
Dputil.cpp2185 const char *codeset = nl_langinfo(U_NL_LANGINFO_CODESET);
2192 codeset = remapPlatformDependentCodepage(localeName, codeset);
2196 codeset = remapPlatformDependentCodepage(nullptr, codeset);
2199 if (codeset != nullptr) {
2200 uprv_strncpy(codesetName, codeset, sizeof(codesetName));
/third_party/icu/icu4c/source/common/
Dputil.cpp2185 const char *codeset = nl_langinfo(U_NL_LANGINFO_CODESET);
2192 codeset = remapPlatformDependentCodepage(localeName, codeset);
2196 codeset = remapPlatformDependentCodepage(NULL, codeset);
2199 if (codeset != NULL) {
2200 uprv_strncpy(codesetName, codeset, sizeof(codesetName));
/third_party/skia/third_party/externals/icu/source/common/
Dputil.cpp2176 const char *codeset = nl_langinfo(U_NL_LANGINFO_CODESET);
2183 codeset = remapPlatformDependentCodepage(localeName, codeset);
2187 codeset = remapPlatformDependentCodepage(NULL, codeset);
2190 if (codeset != NULL) {
2191 uprv_strncpy(codesetName, codeset, sizeof(codesetName));
/third_party/python/Doc/library/
Dgettext.rst49 .. function:: bind_textdomain_codeset(domain, codeset=None)
51 Bind the *domain* to *codeset*, changing the encoding of byte strings
54 If *codeset* is omitted, then the current binding is returned.
184 …on:: translation(domain, localedir=None, languages=None, class_=None, fallback=False, codeset=None)
191 take a single :term:`file object` argument. If provided, *codeset* will change
209 The *codeset* parameter.
212 .. function:: install(domain, localedir=None, codeset=None, names=None)
215 *domain*, *localedir*, and *codeset* which are passed to the function
232 The *codeset* parameter.
Dcodecs.rst1009 * an ISO 8859 codeset
1011 * a Microsoft Windows code page, which is typically derived from an 8859 codeset,
/third_party/elfutils/m4/
DChangeLog91 * codeset.m4: Upgrade to gettext-0.11.
/third_party/python/Modules/cjkcodecs/
DREADME53 codeset 2. Because JIS X 0212 and JIS X 0213 Plane 2 don't have
/third_party/skia/third_party/externals/harfbuzz/
Dgit.mk131 codeset.m4 \
/third_party/popt/
DCHANGES103 - jbj: add POPT_dgettext() for popt internal UTF-8 codeset (Takao Fujiwara).
/third_party/python/Lib/test/
Dtest_gettext.py814 codeset='utf-16')
/third_party/icu/icu4c/source/
Dconfigure.ac719 AC_CACHE_CHECK([for nl_langinfo's argument to obtain the codeset],
/third_party/skia/third_party/externals/icu/source/
Dconfigure.ac722 AC_CACHE_CHECK([for nl_langinfo's argument to obtain the codeset],

123