Zim

Can't use external editor for editing source if the note has special characters (on Windows)

Bug #1222888 reported by Negirno
14
This bug affects 3 people
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++\notepad++.exe
Traceback (most recent call last):
  File "zim\applications.pyo", line 249, in spawn
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.exe\zim\gui\widgets.py:3329: Warning: WaitForMultipleObjectsEx failed: A leíró érvénytelen.

(note: the string "A leíró érvénytelen" means "handle is invalid", or "descriptor is invalid" in Hungarian)

Hope this helps.

Negirno (negirno)
tags: added: win32
tags: added: filesystem integration
tags: added: unicode
Revision history for this message
Jaap Karssenberg (jaap.karssenberg) wrote :

Will commit fix in rev677

Changed in zim:
status: New → Fix Committed
Revision history for this message
Jaap Karssenberg (jaap.karssenberg) wrote :

Fixed in release 0.61

Changed in zim:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.