SVD fails on non-ASCII characters

Bug #433201 reported by Kyle Drexel
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Divisi UI
Status tracked in Release
Release
Fix Released
High
Rob Speer

Bug Description

Unable to run SVD.
Traceback (most recent call last): File "backend.py", line 307, in <module> File "backend.py", line 126, in main File "backend.py", line 229, in tensor_to_svdview File "csc\divisi\export_svdview.pyc", line 143, in write_annotated UnicodeDecodeError: 'ascii' codec can't decode byte 0x93 in position 9: ordinal not in range(128)

Tags: backend
Kyle Drexel (kydrex)
Changed in divisiui:
assignee: nobody → Rob Speer (rspeer)
Rob Speer (rspeer)
summary: - Unable to run SVD.
+ SVD fails on non-ASCII characters
Revision history for this message
Rob Speer (rspeer) wrote :

It turns out that character 0x93 is a "left smart-quote". We should probably treat smartquotes as if they were regular quotation marks, but also, more generally, we should not die on characters that are outside the basic ASCII set.

This requires only a small change to backend.py. However, I won't be able to do a Windows build of a revised backend until Monday.

Annoying workaround for now: remove smart-quotes from the files you input.

Changed in divisiui:
importance: Undecided → High
tags: added: backend
Rob Speer (rspeer)
Changed in divisiui:
status: New → In Progress
Revision history for this message
Kyle Drexel (kydrex) wrote :

FYI - here's another error I just got, apparently related:
UnicodeDecodeError: 'ascii' codec can't decode byte 0x92 in position 111: ordinal not in range(128)
Probably just another manifestation of this bug, but including it here for ref.

Rob Speer (rspeer)
Changed in divisiui:
milestone: none → 1.0.1
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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