Can't use external editor for editing source if the note has special characters (on Windows)
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Zim |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Platform: Windows 7 SP2
Zim version: 0.60
DEBUG: Gtk version is (2, 24, 10)
DEBUG: Pygtk version is (2, 24, 0)
I tried to make open my notes in Notepad++ from Zim, with Tools|Edit Source, but if the file has special characters in them, the function doesn't work properly.
In the case of extended latin characters (such as á é í ó ú), Zim prompted that it failed to run Notepad++.
The following error message appeared in the file zim-daemon.log:
ERROR: Failed running: C:\Program Files\Notepad+
Traceback (most recent call last):
File "zim\applicatio
GError: Invalid string in argument vector at 1: Invalid byte sequence in conversion input
In the case of Asian characters, Zim calls Notepad++ successfully, however, it changed the special characters in the file name into question marks in the parameter. For example: 日本語-notes.txt becomes ???-notes.txt. This confuses Notepad++ which assumes that the file doesn't exist.
This time, zim.log got a message, which reads:
C:\Program Files\Zim Desktop Wiki\zim.
(note: the string "A leíró érvénytelen" means "handle is invalid", or "descriptor is invalid" in Hungarian)
Hope this helps.
tags: | added: win32 |
tags: | added: filesystem integration |
tags: | added: unicode |
Will commit fix in rev677