[X2Go-Commits] [x2goserver] 70/99: {X2Go/Server/Agent/NX/Options.pm, x2goserver/bin/x2goupdateoptionsstring}: enable Unicode handling, as far as possible.

git-admin at x2go.org git-admin at x2go.org
Mon Dec 28 06:10:50 CET 2020


This is an automated email from the git hooks/post-receive script.

x2go pushed a commit to branch master
in repository x2goserver.

commit 39d02690ca14de59bcc142248aeedfa77b37ec4a
Author: Mihai Moldovan <ionic at ionic.de>
Date:   Wed Nov 25 01:25:46 2020 +0100

    {X2Go/Server/Agent/NX/Options.pm,x2goserver/bin/x2goupdateoptionsstring}: enable Unicode handling, as far as possible.
---
 X2Go/Server/Agent/NX/Options.pm        | 6 ++++++
 debian/changelog                       | 3 +++
 x2goserver/bin/x2goupdateoptionsstring | 6 ++++++
 3 files changed, 15 insertions(+)

diff --git a/X2Go/Server/Agent/NX/Options.pm b/X2Go/Server/Agent/NX/Options.pm
index 2f620cd4..97f8afb8 100644
--- a/X2Go/Server/Agent/NX/Options.pm
+++ b/X2Go/Server/Agent/NX/Options.pm
@@ -29,6 +29,12 @@ package X2Go::Server::Agent::NX::Options;
 use strict;
 use warnings;
 
+# Enable full Unicode handling, if possible.
+use 5.012;
+
+# Enable UTF-8 encoded data in the script itself.
+use utf8;
+
 use base 'Exporter';
 use English qw (-no_match_vars);
 use Storable qw (dclone);
diff --git a/debian/changelog b/debian/changelog
index 93fa7fc5..60ce2bfa 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -328,6 +328,9 @@ x2goserver (4.1.0.4-0x2go1.2) UNRELEASED; urgency=medium
     - x2goserver/bin/x2goupdateoptionsstring: generalize code looping through
       program arguments and split out transformation operation into own
       subroutine.
+    - {X2Go/Server/Agent/NX/Options.pm,
+       x2goserver/bin/x2goupdateoptionsstring}: enable Unicode handling, as
+      far as possible.
   * debian/control:
     + Build-depend upon lsb-release for distro version detection.
   * debian/x2goserver.manpages:
diff --git a/x2goserver/bin/x2goupdateoptionsstring b/x2goserver/bin/x2goupdateoptionsstring
index cb3470ad..00a829c5 100755
--- a/x2goserver/bin/x2goupdateoptionsstring
+++ b/x2goserver/bin/x2goupdateoptionsstring
@@ -29,6 +29,12 @@
 use strict;
 use warnings;
 
+# Enable full Unicode handling, if possible.
+use 5.012;
+
+# Enable UTF-8 encoded data in the script itself.
+use utf8;
+
 #use X2Go::Utils qw (is_int);
 use English qw (-no_match_vars);
 use Getopt::Long qw (GetOptionsFromArray);

--
Alioth's /home/x2go-admin/maintenancescripts/git/hooks/post-receive-email on /srv/git/code.x2go.org/x2goserver.git


More information about the x2go-commits mailing list