src/plugins/GraphViz.py: fix unicode encoding
svn: r6744
This commit is contained in:
parent
347a488142
commit
3875cdb615
@ -8,6 +8,7 @@
|
|||||||
* src/plugins/GraphViz.py.in: fix file open.
|
* src/plugins/GraphViz.py.in: fix file open.
|
||||||
* src/plugins/Calendar.py: make calendar work in Windows
|
* src/plugins/Calendar.py: make calendar work in Windows
|
||||||
* src/GrampsLocale.py: make calendar work in Windows
|
* src/GrampsLocale.py: make calendar work in Windows
|
||||||
|
* src/plugins/GraphViz.py: fix unicode encoding
|
||||||
|
|
||||||
2006-05-21 Alex Roitman <shura@gramps-project.org>
|
2006-05-21 Alex Roitman <shura@gramps-project.org>
|
||||||
* src/GrampsDb/_GrampsBSDDB.py: Do not import unused module.
|
* src/GrampsDb/_GrampsBSDDB.py: Do not import unused module.
|
||||||
|
@ -238,7 +238,7 @@ class GraphViz:
|
|||||||
the_buffer = self.get_report()
|
the_buffer = self.get_report()
|
||||||
self.f = open(options_class.get_output(),'w')
|
self.f = open(options_class.get_output(),'w')
|
||||||
if self.latin:
|
if self.latin:
|
||||||
self.f.write(the_buffer.encode('iso-8859-1'))
|
self.f.write(the_buffer.encode('iso-8859-1', 'replace'))
|
||||||
else:
|
else:
|
||||||
self.f.write(the_buffer)
|
self.f.write(the_buffer)
|
||||||
self.f.close()
|
self.f.close()
|
||||||
@ -894,6 +894,7 @@ class GraphVizOptions(ReportOptions.ReportOptions):
|
|||||||
self.options_dict['incid'] = int(self.includeid_cb.get_active())
|
self.options_dict['incid'] = int(self.includeid_cb.get_active())
|
||||||
self.options_dict['justyears'] = int(self.just_years_cb.get_active())
|
self.options_dict['justyears'] = int(self.just_years_cb.get_active())
|
||||||
self.options_dict['placecause'] = int(self.place_cause_cb.get_active())
|
self.options_dict['placecause'] = int(self.place_cause_cb.get_active())
|
||||||
|
self.options_dict['latin'] = int(self.latin_cb.get_active())
|
||||||
self.options_dict['ratio'] = \
|
self.options_dict['ratio'] = \
|
||||||
_options.ratio[self.ratio_box.get_active()][0]
|
_options.ratio[self.ratio_box.get_active()][0]
|
||||||
self.options_dict['rankdir'] = \
|
self.options_dict['rankdir'] = \
|
||||||
|
Loading…
Reference in New Issue
Block a user