PythonScript icon indicating copy to clipboard operation
PythonScript copied to clipboard

PythonScript fails with a Unicode character in the installed path of Notepad++

Open J-P- opened this issue 7 years ago • 5 comments

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- avatar Nov 27 '18 12:11 J-P-

however PythonScript results in an error when a script is executed

What kind of error results from this? Can you be more specific?

sasumner avatar Nov 27 '18 12:11 sasumner

@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 avatar Nov 27 '18 22:11 chcg

@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.

J-P- avatar Nov 30 '18 20:11 J-P-