Lines Matching refs:codeset
228 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
659 if codeset is not None:
660 _localecodesets[domain] = codeset
676 codeset = _localecodesets.get(domain)
681 t = translation(domain, _localedirs.get(domain, None), codeset=codeset)
683 return message.encode(codeset or locale.getpreferredencoding())
704 codeset = _localecodesets.get(domain)
709 t = translation(domain, _localedirs.get(domain, None), codeset=codeset)
715 return tmsg.encode(codeset or locale.getpreferredencoding())