Make sure program output use utf-8 encoding
[clawsker.git] / clawsker
index 5644412e3549fcaf71b52a3c2d7a52dc82391e51..f7a64cb2edcb45552d1a14ba4ae4d41b5a18b0b9 100755 (executable)
--- a/clawsker
+++ b/clawsker
@@ -2,9 +2,18 @@
 #
 # Clawsker :: A Claws Mail Tweaker
 # Copyright 2007-2014 Ricardo Mones <ricardo@mones.org>
+#
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+#
 # See COPYING file for license details.
 # See AUTHORS file for a complete list of contributors.
 #
+
+binmode STDOUT, ":encoding(utf8)";
+
 use strict;
 use utf8;
 use Glib qw(TRUE FALSE);
@@ -209,7 +218,7 @@ use constant NAME  => 0; # the name on the rc file
 use constant LABEL => 1; # the label on the GUI
 use constant DESC  => 2; # the description for the hint/help
 use constant TYPE  => 3; # data type: bool, int, float, string, color
-use constant CMVER => 4; # lowest Claws Mail version the feature exists
+use constant CMVER => 4; # lowest[,highest] Claws Mail version(s) the feature exists
 use constant CMDEF => 5; # default value for the preference in Claws Mail
 use constant GUI   => 6; # GUI element
 
@@ -664,7 +673,7 @@ sub new_other_page() {
         $xl::s{l_gui_dot_lines},
         $xl::s{h_gui_dot_lines},
         'bool',
-        '0.0.0',
+        '0.0.0,3.7.10.44',
         '0',
         undef,
     ],