8000 force utf-8 in jupyter_lsp-1.1.4 · winpython/winpython@eafcc5e · GitHub
[go: up one dir, main page]

Skip to content

Commit eafcc5e

Browse files
committed
1 parent aa0c663 commit eafcc5e

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

run_complement_newbuild.bat

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,17 @@ if "%WINPYARCH%"=="WIN32" copy "C:\WinPython\bd35\patch_qt570\opengl32sw-32\open
6868
if not "%WINPYARCH%"=="WIN32" copy "C:\WinPython\bd35\patch_qt570\opengl32sw-64\opengl32sw.dll" "%WINPYDIR%\Lib\site-packages\PyQt5\Qt\bin\ 8000 opengl32sw.dll"
6969
)
7070

71+
rem ** Active patchs**
72+
rem * ===========================
73+
rem 2021-04-17 patch jupyter_lsp-1.1.4
74+
rem see https://github.com/krassowski/jupyterlab-lsp/pull/580/files
75+
rem * ===========================
76+
if exist "%WINPYDIR%\Lib\site-packages\jupyter_lsp-1.1.4.dist-info" (
77+
set this_source='%WINPYDIR%\Lib\site-packages\jupyter_lsp\virtual_documents_shadow.py'
78+
%WINPYDIR%\python.exe -c "from winpython.utils import patch_sourcefile;patch_sourcefile(r%this_source%, 'read_text()', 'read_text(encoding='+chr(39)+'utf-8'+chr(39)+')' )"
79+
%WINPYDIR%\python.exe -c "from winpython.utils import patch_sourcefile;patch_sourcefile(r%this_source%, 'join(self.lines))', 'join(self.lines), encoding='+chr(39)+'utf-8'+chr(39)+')' )"
80+
)
81+
7182
rem ** Example of live file replacement (not active)**
7283
rem * ===========================
7384
rem 2020-05-15 patch jedi-0.17.0

0 commit comments

Comments
 (0)
0