From 0beb94336a9f82619eb1ff01fc0b5904387a455e Mon Sep 17 00:00:00 2001 From: Kjell Ahlstedt Date: Fri, 11 Mar 2011 08:45:12 +0100 Subject: 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 deletion(-) diff --git a/ChangeLog b/ChangeLog index 392eaab7..37b35c43 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2011-03-11 Kjell Ahlstedt + + 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 FileInfo: Add TODOs about using ustring instead of std::string. diff --git a/tools/pm/GtkDefs.pm b/tools/pm/GtkDefs.pm index b5a3fe18..f665099c 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 b08117dd..31fbf07e 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 b4a12c3e..536341d4 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; -- cgit v1.2.1