Home
last modified time | relevance | path

Searched refs:codeset (Results 1 - 14 of 14) sorted by relevance

/third_party/popt/src/
H A Dpoptint.c43 * Rebind a "UTF-8" codeset for popt's internal use.
48 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/musl/src/locale/
H A 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/
H A D_localemodule.c.h487 "bind_textdomain_codeset($module, domain, codeset, /)\n"
490 "Bind the C library\'s domain to codeset.");
497 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/libexif/test/nls/
H A 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()
H A Dtest-codeset.c33 #define bind_textdomain_codeset(domain,codeset) \
94 "Old codeset: \"%s\" (locale default)\n", in check()
99 "Old codeset: \"%s\"\n", in check()
105 "Wanted codeset: %s\n" in check()
106 "Real codeset: %s\n", in check()
/third_party/python/Modules/
H A D_localemodule.c753 codeset: str(accept={str, NoneType})
756 Bind the C library's domain to codeset.
761 const char *codeset) in _locale_bind_textdomain_codeset_impl()
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()
760 _locale_bind_textdomain_codeset_impl(PyObject *module, const char *domain, const char *codeset) _locale_bind_textdomain_codeset_impl() argument
H A D_cursesmodule.c686 const char *codeset = nl_langinfo(CODESET); in PyCursesWindow_New()
687 if (codeset != NULL && codeset[0] != 0) in PyCursesWindow_New()
688 encoding = codeset; in PyCursesWindow_New()
/third_party/icu/icu4c/source/common/
H A Dputil.cpp131 * Only include langinfo.h if we have a way to get the codeset. If we later
2185 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));
2213 /* if we can find the codeset name from setlocale, return that. */
/third_party/node/deps/icu-small/source/common/
H A Dputil.cpp131 * Only include langinfo.h if we have a way to get the codeset. If we later
2200 const char *codeset = nl_langinfo(U_NL_LANGINFO_CODESET);
2207 codeset = remapPlatformDependentCodepage(localeName, codeset);
2211 codeset = remapPlatformDependentCodepage(nullptr, codeset);
2214 if (codeset != nullptr) {
2215 uprv_strncpy(codesetName, codeset, sizeof(codesetName));
2228 /* if we can find the codeset name from setlocale, return that. */
/third_party/skia/third_party/externals/icu/source/common/
H A Dputil.cpp131 * Only include langinfo.h if we have a way to get the codeset. If we later
2176 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));
2204 /* if we can find the codeset name from setlocale, return that. */
/third_party/python/Lib/
H A Dgettext.py233 codeset = loc[pos:]
237 codeset = ''
251 if i & COMPONENT_CODESET: val += codeset
/third_party/python/Python/
H A Dfileutils.c209 const char *codeset = nl_langinfo(CODESET); in check_force_ascii() local
210 if (!codeset || codeset[0] == '\0') { in check_force_ascii()
216 if (!_Py_normalize_encoding(codeset, encoding, sizeof(encoding))) { in check_force_ascii()
947 char* codeset = nl_langinfo(CODESET); in _Py_LocaleUsesNonUnicodeWchar() local
948 if (!codeset) { in _Py_LocaleUsesNonUnicodeWchar()
952 return (strcmp(codeset, "UTF-8") != 0 && strcmp(codeset, "646") != 0); in _Py_LocaleUsesNonUnicodeWchar()
H A Dpylifecycle.c376 char *codeset = nl_langinfo(CODESET); in _Py_CoerceLegacyLocale() local
377 if (!codeset || *codeset == '\0') { in _Py_CoerceLegacyLocale()
/third_party/skia/third_party/externals/harfbuzz/
H A Dgit.mk131 codeset.m4 \

Completed in 24 milliseconds