On Sun, Sep 17, 2023 at 04:55:32PM +0100, José Matos wrote: > On Sun, 2023-09-17 at 11:48 +0800, Dai Longzhi ????????? wrote: > > How to fix: > > I found a way in Zhihu.com. It add this: > > import sys > > reload(sys) > > sys.setdefaultencoding("utf-8") > > in "C:\Program Files\LyX 2.3\Python\Lib\subprocess.py". Then the > > Reconfiguring works. > > > > I am not sure someone will read this. If anyone readed this, please > > reply to this mail about the progress. Or I will try other way to > > feedback this bug. > > The code above only works if you are using python 2. > By now python 3 is the best choice. > > On the other hand you do not need to reload the module at all. So your > fix should be enough: > > import sys > sys.setdefaultencoding("utf-8")
Jose, does it mean that you propose patching Python source? Can't we fix this ourselves? Pavel -- lyx-devel mailing list lyx-devel@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-devel