You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
PythonScript fails with a Unicode character in the installed path of Notepad++ #112
It took me some months to solve this issue since I would always revert to a previous installation.
If there is a Unicode character (non-ASCII) in the installed path of Notepad++, NP++ works the same however PythonScript results in an error when a script is executed. In my installation, a bullet (•) failed. The error is reproducible in my environment with at least NP++ versions 6.6 through 7.5.9.
If the character is removed, all goes as expected. Hope this helps.
@J-P- Which version of PythonScript is used ? Latest 1.3?
There was a fix with #60 for unicode script names, but that fix probably doesn't cover unicode chars in the N++ path itself.
@chcg
PythonScript versions 1.0.8 through to the current 1.3.0 has the problem.
@sasumner
I cannot recall the specific error; i think it was "Unknown Exception." However, anyone can achieve the error by adding any Unicode (non-ASCII) character to the name of the Notepad++ folder. In addition, removing the character will make things normal again.
I cannot add more. I just changed the path for my installation for it to work. Don't have the time or patience to fiddle at this point.
Activity
sasumner commentedon Nov 27, 2018
What kind of error results from this? Can you be more specific?
chcg commentedon Nov 27, 2018
@J-P- Which version of PythonScript is used ? Latest 1.3?
There was a fix with #60 for unicode script names, but that fix probably doesn't cover unicode chars in the N++ path itself.
J-P- commentedon Nov 30, 2018
@chcg
PythonScript versions 1.0.8 through to the current 1.3.0 has the problem.
@sasumner
I cannot recall the specific error; i think it was "Unknown Exception." However, anyone can achieve the error by adding any Unicode (non-ASCII) character to the name of the Notepad++ folder. In addition, removing the character will make things normal again.
I cannot add more. I just changed the path for my installation for it to work. Don't have the time or patience to fiddle at this point.
Ekopalypse commentedon Dec 31, 2024
@chcg
When PythonScript2 will be deprecated, this problem can be closed as it does not occur with the current version of PythonScript.
chcg commentedon Jan 4, 2025
PythonScript2 fails at https://github.com/bruderstein/PythonScript/blob/stable_python27/PythonScript/src/PythonConsole.cpp#L102 (maybe related to similar import issues as described in https://bugs.python.org/issue9425. The following PyErr_Print() then terminates python and therefore also N++ (see #301)