Extension parameter null with accented character
Bug #1732929 reported by
bka
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Inkscape |
New
|
Undecided
|
Unassigned |
Bug Description
In an extension containing a string parameter, if the user enter a string that contains at least one accented character (ex: à, é, è...) the value of the parameter received by the python script is null.
This behaviour is also reproduced by default extensions shipped in Inkscape (ex: Web>Slicer>Create a slicer rectangle..., see the attachement animated gif).
This behaviour is reproduced in 0.92.2 and 0.92.1 using the french or english locale (switching in preferences panel).
To post a comment you must log in.
Related to (if not a duplicate of) bug #1256694.
Note that the extension receives the string just fine (at least for all characters supported in the OSs console encoding) as confirmed with the small sample extension attached.
The problem probably is some issue with encodings in the Python script itself (I assume the ANSI-encoded parameters are interpreted as UTF-8 in the script which leads to invalid UTF-8 characters) but this needs proper investigation.