parameters: ()
docstring: On Windows, some default encodings are not provided by Python,
      while they are always available as "mbcs" in each locale. Make
      them usable by aliasing to "mbcs" in such a case.
docstring_summary: On Windows, some default encodings are not provided by Python,
      while they are always available as "mbcs" in each locale. Make
      them usable by aliasing to "mbcs" in such a case.
docstring_tokens: On Windows some default encodings are not provided by Python while they are always available as mbcs in each locale . Make them usable by aliasing to mbcs in such a case .
function: def aliasmbcs():
      """On Windows, some default encodings are not provided by Python,
      while they are always available as "mbcs" in each locale. Make
      them usable by aliasing to "mbcs" in such a case."""
      if sys.platform == 'win32':
          import locale, codecs
          enc = locale.getdefaultlocale()[1]
          if enc.startswith('cp'):            # "cp***" ?
              try:
                  codecs.lookup(enc)
              except LookupError:
                  import encodings
                  encodings._cache[enc] = encodings._unknown
                  encodings.aliases.aliases[enc] = 'mbcs'
function_tokens: def aliasmbcs ( ) : if sys . platform == 'win32' : import locale , codecs enc = locale . getdefaultlocale ( ) [ 1 ] if enc . startswith ( 'cp' ) : # "cp***" ? try : codecs . lookup ( enc ) except LookupError : import encodings encodings . _cache [ enc ] = encodings . _unknown encodings . aliases . aliases [ enc ] = 'mbcs'