def aliasmbcs():
if sys.platform == '<STR_LIT:win32>':<EOL><INDENT>import locale, codecs<EOL>enc = locale.getdefaultlocale()[<NUM_LIT:1>]<EOL>if enc.startswith('<STR_LIT>'):            <EOL><INDENT>try:<EOL><INDENT>codecs.lookup(enc)<EOL><DEDENT>except LookupError:<EOL><INDENT>import encodings<EOL>encodings._cache[enc] = encodings._unknown<EOL>encodings.aliases.aliases[enc] = '<STR_LIT>'<EOL><DEDENT><DEDENT><DEDENT>
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.