[glibmm] Tell gmmproc that it reads and writes UTF-8 files.



commit 0beb94336a9f82619eb1ff01fc0b5904387a455e
Author: Kjell Ahlstedt <kjell ahlstedt bredband net>
Date:   Fri Mar 11 08:45:12 2011 +0100

    Tell gmmproc that it reads and writes UTF-8 files.
    
    * tools/pm/GtkDefs.pm:
    * tools/pm/Output.pm:
    * tools/pm/WrapParser.pm: Add 'use open IO => ":utf8";'. Bug #644037

 ChangeLog              |    8 ++++++++
 tools/pm/GtkDefs.pm    |    1 +
 tools/pm/Output.pm     |    4 +++-
 tools/pm/WrapParser.pm |    2 ++
 4 files changed, 14 insertions(+), 1 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 392eaab..37b35c4 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2011-03-11  Kjell Ahlstedt  <kjell ahlstedt bredband net>
+
+	Tell gmmproc that it reads and writes UTF-8 files.
+
+	* tools/pm/GtkDefs.pm:
+	* tools/pm/Output.pm:
+	* tools/pm/WrapParser.pm: Add 'use open IO => ":utf8";'. Bug #644037
+
 2011-03-09  Murray Cumming  <murrayc murrayc com>
 
 	FileInfo: Add TODOs about using ustring instead of std::string.
diff --git a/tools/pm/GtkDefs.pm b/tools/pm/GtkDefs.pm
index b5a3fe1..f665099 100644
--- a/tools/pm/GtkDefs.pm
+++ b/tools/pm/GtkDefs.pm
@@ -19,6 +19,7 @@
 package GtkDefs;
 use strict;
 use warnings;
+use open IO => ":utf8";
 
 use Util;
 use Enum;
diff --git a/tools/pm/Output.pm b/tools/pm/Output.pm
index b08117d..31fbf07 100644
--- a/tools/pm/Output.pm
+++ b/tools/pm/Output.pm
@@ -18,6 +18,8 @@
 #
 package Output;
 use strict;
+use open IO => ":utf8";
+
 BEGIN { @Namespace::ISA=qw(main); }
 
 # $objOutputter new()
@@ -665,7 +667,7 @@ sub write_sections_to_files()
 
   open(INPUT, '<', "$$self{tmpdir}/gtkmmproc_$$.g2"); # $$ is the process ID.
 
-  # open tempory file for each section
+  # open temporary file for each section
   open(OUTPUT_H,  '>', "$fname_h.tmp");
   open(OUTPUT_PH, '>', "$fname_ph.tmp");
   open(OUTPUT_CC, '>', "$fname_cc.tmp");
diff --git a/tools/pm/WrapParser.pm b/tools/pm/WrapParser.pm
index b4a12c3..536341d 100644
--- a/tools/pm/WrapParser.pm
+++ b/tools/pm/WrapParser.pm
@@ -19,6 +19,8 @@
 package WrapParser;
 use strict;
 use warnings;
+use open IO => ":utf8";
+
 use Util;
 use GtkDefs;
 use Function;



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