Comment 65 for bug 1662531

Revision history for this message
Alvin Penner (apenner) wrote :

the localize() code appears to be working on my machine. I insert the following code into inkex.py

def localize():
    domain = 'inkscape'
    if sys.platform.startswith('win'):
        import locale
        floc = open('\Windows\Temp\save_locale.txt', 'wt')
        floc.write("'" + str(locale.getdefaultlocale()) + "'\n")
        floc.close()
        current_locale, encoding = locale.getdefaultlocale()

then I execute prepare_file_save_as.py, and I get a file with the entries:

'('en_US', 'cp1252')'

after that I get a crash