Issue 83 in dicompyler: Crash occurs when reading files from folder with non-ascii characters

6 views
Skip to first unread message

dicom...@googlecode.com

unread,
Oct 23, 2012, 10:08:20 AM10/23/12
to dicompyle...@googlegroups.com
Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

New issue 83 by chris.le...@gmail.com: Crash occurs when reading files from
folder with non-ascii characters
http://code.google.com/p/dicompyler/issues/detail?id=83

What steps will reproduce the problem?
1. Put any CT file in a folder named e.g. "test". Open the folder with
Dicompyler and click select: The display window opens successfully.
2. Rename the folder to a name containing at least one non-standard ascii
character, e.g. "testøæå"
3. Browse to the folder and press OK. Click Select to get the display
window. Dicompyler crashes before reaching the display window.

What is the expected output? What do you see instead?
Expect to see the CT image(s). Instead we get the following crash report:
dicompyler.plugin: DEBUG: anonymize loaded
dicompyler.plugin: DEBUG: dvh loaded
dicompyler.plugin: DEBUG: treeview loaded
dicompyler.dicomgui: DEBUG: Reading:
C:\github\temp\dicompyler_errorø\CT_fails_with_dicompyler_encoding.dcm
dicompyler: ERROR: Unhandled exception: Traceback (most recent call last):
File "main.py", line 691, in Run
File "threading.pyo", line 484, in run
File "dicompyler\dicomgui.pyo", line 666, in GetPatientData
UnicodeEncodeError: 'ascii' codec can't encode character u'\xf8' in
position 31: ordinal not in range(128)

What version of the product are you using? On what operating system?
System: Windows
Version: ('XP', '5.1.2600', 'SP3', 'Multiprocessor Free')
Python Version: 2.6.6
dicompyler Version: 0.4.1-1

Please provide any additional information below.


Reply all
Reply to author
Forward
0 new messages