From c4cf0f5b793aee232d71a8c24594b2572fd83ca1 Mon Sep 17 00:00:00 2001 From: hkosaka Date: Fri, 11 Jul 2014 06:51:39 +0000 Subject: [PATCH] 2014-07-11 Hirofumi Kosaka * util/pandora_manage.pl: To handle multi-byte strings in command line arguments (assumes utf-8). git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@10337 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f --- pandora_server/ChangeLog | 5 +++++ pandora_server/util/pandora_manage.pl | 4 ++++ 2 files changed, 9 insertions(+) diff --git a/pandora_server/ChangeLog b/pandora_server/ChangeLog index 6ae53eb2ba..1a7f058ac0 100644 --- a/pandora_server/ChangeLog +++ b/pandora_server/ChangeLog @@ -1,3 +1,8 @@ +2014-07-11 Hirofumi Kosaka + + * util/pandora_manage.pl: To handle multi-byte strings in + command line arguments (assumes utf-8). + 2014-07-08 Vanessa Gil * util/pandora_manage.pl: Fixed problem diff --git a/pandora_server/util/pandora_manage.pl b/pandora_server/util/pandora_manage.pl index 3285b4cd95..3d23171079 100755 --- a/pandora_server/util/pandora_manage.pl +++ b/pandora_server/util/pandora_manage.pl @@ -29,6 +29,10 @@ use PandoraFMS::DB; use PandoraFMS::Core; use PandoraFMS::Config; +# To handle 'UTF-8' encoded string in command like arguments (similar to "-CA" option for perl) +use Encode::Locale; +Encode::Locale::decode_argv; + # version: define current version my $version = "5.1 PS140630";