Python UnicodeEncodeError in the unittest runner during uicheck on Windows

Stephan Bergmann sbergman at redhat.com
Tue Apr 14 07:14:53 UTC 2020


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.



More information about the LibreOffice mailing list