Fix Python execution with autocrlf on Windows

If the interp file contains CRLF, the \r is read as part of the
executable file name, and gimp searches for python3.exe\r.

(cherry picked from commit b134da1f39)
This commit is contained in:
Orgad Shaneh
2021-02-08 22:12:46 +02:00
committed by Jehan
parent 7aac5b8f33
commit 97f063b926

View File

@ -291,6 +291,7 @@ gimp_interpreter_db_add_program (GimpInterpreterDB *db,
name = buffer;
program = p + 1;
g_strchomp (program);
if (! g_file_test (program, G_FILE_TEST_IS_EXECUTABLE))
{