Re: Python UnicodeEncodeError in the unittest runner during uicheck on Windows

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 09/04/2020 17:21, Miklos Vajna wrote:
One option would be to tweak test_main.py to default to UTF-8, like
Linux does. You could try something like this:

if sys.platform.startswith("win"):
     import _locale
     _locale._getdefaultlocale = (lambda *args: ['en_US', 'utf8'])

Does not make a difference. Neither if I put this at the top of uitest/test_main.py after all the imports, nor if I put it at the top of the "if __name == '__main__':" block.

_______________________________________________
LibreOffice mailing list
LibreOffice@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/libreoffice



[Index of Archives]     [LARTC]     [Bugtraq]     [Yosemite Forum]     [Photo]

  Powered by Linux