Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--NEWS11
-rw-r--r--activity/activity.info2
-rwxr-xr-xturtleblocks.py5
3 files changed, 16 insertions, 2 deletions
diff --git a/NEWS b/NEWS
index 4185d16..0fc53e0 100644
--- a/NEWS
+++ b/NEWS
@@ -1,3 +1,14 @@
+175
+
+ENHANCEMENT:
+* Power management utility: Alan Aguiar
+
+BUG FIXES:
+* Force audio sensors to use single channel on XO 4
+* Fix problem with file naming when saving images in GNOME
+* Fix problem with file naming when saving Logo code in GNOME
+* Use newline (\n) instead of return (\r) in exported Logo code
+
174
ENHANCEMENTS:
diff --git a/activity/activity.info b/activity/activity.info
index 7ebcab1..3d1e9d5 100644
--- a/activity/activity.info
+++ b/activity/activity.info
@@ -1,6 +1,6 @@
[Activity]
name = TurtleBlocks
-activity_version = 174
+activity_version = 175
license = MIT
bundle_id = org.laptop.TurtleArtActivity
exec = sugar-activity TurtleArtActivity.TurtleArtActivity
diff --git a/turtleblocks.py b/turtleblocks.py
index 9947fe4..2fe9b45 100755
--- a/turtleblocks.py
+++ b/turtleblocks.py
@@ -496,7 +496,10 @@ class TurtleMain():
save_type = '.lg'
filename, self.tw.load_save_folder = get_save_name(save_type,
self.tw.load_save_folder, 'logosession')
- f = file(filename, 'w')
+ if type(filename) == unicode:
+ f = file(filename.encode('ascii', 'replace'), 'w')
+ else:
+ f = file(filename, 'w')
f.write(logocode)
f.close()