Skip to content

Commit

Permalink
set locale explicitly
Browse files Browse the repository at this point in the history
  • Loading branch information
royrutto authored and denniswambua committed Feb 8, 2017
1 parent 076962d commit 10e98e7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion onadata/libs/utils/export_builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -847,7 +847,8 @@ def write_row(row, csv_writer, fields):
for section in self.sections:
sav_options = self._get_sav_options(section['elements'])
sav_file = NamedTemporaryFile(suffix=".sav")
sav_writer = SavWriter(sav_file.name, **sav_options)
sav_writer = SavWriter(sav_file.name, ioLocale="en_US.UTF-8",
**sav_options)
sav_defs[section['name']] = {
'sav_file': sav_file, 'sav_writer': sav_writer}

Expand Down

0 comments on commit 10e98e7

Please sign in to comment.