[glade3] Save glade files with UTF-8 encoding



commit e74974611afe0c3303866f12334c0c6097c0985d
Author: Christian Persch <chpe gnome org>
Date:   Wed Mar 17 18:03:33 2010 +0100

    Save glade files with UTF-8 encoding
    
    This avoid putting character entities for non-ASCII characters
    in the extractable strings. Bug #596205.

 ChangeLog                 |    6 ++++++
 gladeui/glade-xml-utils.c |    2 +-
 2 files changed, 7 insertions(+), 1 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 43376cc..ce4d3af 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2010-03-17  Christian Persch  <chpe gnome org>
+
+	* gladeui/glade-xml-utils.c: Save glade files with UTF-8 encoding
+	This avoid putting character entities for non-ASCII characters in the
+	extractable strings. Bug #596205.
+
 2010-03-11  Aaron Brown  <aaron j brown hotmail com>
 
 	* src/glade-window.c: Changed "Close without saving" acelerator key
diff --git a/gladeui/glade-xml-utils.c b/gladeui/glade-xml-utils.c
index e61e008..e0bdeb0 100644
--- a/gladeui/glade-xml-utils.c
+++ b/gladeui/glade-xml-utils.c
@@ -852,7 +852,7 @@ glade_xml_doc_save (GladeXmlDoc *doc_in, const gchar *full_path)
 	xmlDocPtr doc = (xmlDocPtr) doc_in;
 
 	xmlKeepBlanksDefault (0);
-	return xmlSaveFormatFile (full_path, doc, 1);
+	return xmlSaveFormatFileEnc (full_path, doc, "UTF-8", 1);
 }
 
 void



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]