summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2008-09-25 13:52:30 +0000
committerThierry Vignaud <tv@mandriva.org>2008-09-25 13:52:30 +0000
commitfeb9b277b59de3a44963a4aebc502037ef1f004e (patch)
tree8b6b6ce8e53d3b066cdb3dfeacd439f017023611
parent403df0a96a21e16a1515fb50c548454ee9090cfa (diff)
downloadcontrol-center-feb9b277b59de3a44963a4aebc502037ef1f004e.tar
control-center-feb9b277b59de3a44963a4aebc502037ef1f004e.tar.gz
control-center-feb9b277b59de3a44963a4aebc502037ef1f004e.tar.bz2
control-center-feb9b277b59de3a44963a4aebc502037ef1f004e.tar.xz
control-center-feb9b277b59de3a44963a4aebc502037ef1f004e.zip
(build_list) make sure --save-html-pages write UTF-8 files
-rw-r--r--NEWS1
-rwxr-xr-xcontrol-center5
2 files changed, 5 insertions, 1 deletions
diff --git a/NEWS b/NEWS
index d7df43b1..0b6ac334 100644
--- a/NEWS
+++ b/NEWS
@@ -1,4 +1,5 @@
- make icon+text act as a single item for links
+- make sure --save-html-pages write UTF-8 files
Version 11.4 - 25 September 2008, Thierry Vignaud
diff --git a/control-center b/control-center
index 16cc4c1c..63af531a 100755
--- a/control-center
+++ b/control-center
@@ -892,7 +892,10 @@ foreach (@tree) {
$page_count++;
$string .= qq(</BODY></HTML>);
- output_p("/tmp/mcc/$i.html", $string) if $save_html;
+ if ($save_html) {
+ mkdir_p('/tmp/mcc');
+ MDK::Common::File::output_utf8("/tmp/mcc/$i.html", $string);
+ }
push @buttons, gtknew('Button', relief => 'none', child =>
gtknew('Label_Right', text_markup => qq(<small>$text</small>), ellipsize => 'end'),