Skip to content

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

Description

@J-P-

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.

Activity

  1. sasumner commented on Nov 27, 2018

    @sasumner

    however PythonScript results in an error when a script is executed

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

  2. chcg commented on Nov 27, 2018

    @chcg
    Collaborator

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

  3. J-P- commented on Nov 30, 2018

    @J-P-
    Author

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

  4. Ekopalypse commented on Dec 31, 2024

    @Ekopalypse
    Contributor

    @chcg
    When PythonScript2 will be deprecated, this problem can be closed as it does not occur with the current version of PythonScript.

    {3926CC72-E97B-4B96-8BDC-6AB788EC335E}

  5. chcg commented on Jan 4, 2025

    @chcg
    Collaborator

    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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions