-
Notifications
You must be signed in to change notification settings - Fork 68
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unicode file-names not displayed properly in Console #75
Comments
@Yaron10 With which version of the plugin. Could you also paste as short example code which triggers this issue. Is it just the displaying of the error message or is it also not possible to use unicode path. |
v1.1.0.53.
Add that line to a file, save it as Thank you for looking into it. I appreciate it. |
Unfortunately that is not wrong, but just the short path name (https://msdn.microsoft.com/en-us/library/windows/desktop/aa364989(v=vs.85).aspx) of the file used behind the scenes to access unicode file names/path, because direct input of the unicode name to python api didn't work. Maybe this could be changed with python 3 (#36), but currently I see no chance to modify that without breaking unicode script filename support from #60. |
Thank you for the explanation.
So I suppose this issue shouldn't be closed for the time being. |
Let's keep it open, but currently I see no easy fix based on python 2.7. Maybe some deeper inspection of the python sourcecode gives some hints, if UTF-8 filenames are supported, but from the current checks, tests and internet searches it doesn't look promising that this is possible. Therefore the "workaround" with the windows shortname was chosen. |
Thanks again. I appreciate your work. Allow me another related question. STR: Is that fixable? Off-topic but still related: Thank you. |
Regarding notepad.getCurrentFilename() and the corresponding result. This seems to be a problem within: PythonScript/PythonScript/src/PythonConsole.cpp Lines 188 to 208 in 77a365b
the input as boost::python:str is UTF8 encoded, but detected as plain string by PyUnicode_Check(). That seems to show it just as encoded version. Need further investigation. |
Thank you for looking into the issue and further investigating it. |
@Yaron10 I just retested the described issues with the current alpha release https://github.com/bruderstein/PythonScript/releases/tag/v3.0.4 and the issues seems to be fixed with the update to python3 and the changes in the script file loading. |
Thank you for your work and for updating here. 👍 |
As you can see, the entire path is not displayed properly.
Thank you.
The text was updated successfully, but these errors were encountered: