You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@vcl.apache.org by ar...@apache.org on 2016/07/14 17:41:21 UTC

svn commit: r1752714 - /vcl/trunk/managementnode/lib/VCL/utils.pm

Author: arkurth
Date: Thu Jul 14 17:41:21 2016
New Revision: 1752714

URL: http://svn.apache.org/viewvc?rev=1752714&view=rev
Log:
Trivial
Made minor addition to utils.pm::string_to_ascii to output the ASCII numerical code in addition to the character for the extended ASCII characters.

Modified:
    vcl/trunk/managementnode/lib/VCL/utils.pm

Modified: vcl/trunk/managementnode/lib/VCL/utils.pm
URL: http://svn.apache.org/viewvc/vcl/trunk/managementnode/lib/VCL/utils.pm?rev=1752714&r1=1752713&r2=1752714&view=diff
==============================================================================
--- vcl/trunk/managementnode/lib/VCL/utils.pm (original)
+++ vcl/trunk/managementnode/lib/VCL/utils.pm Thu Jul 14 17:41:21 2016
@@ -9421,6 +9421,10 @@ sub string_to_ascii {
 			$ascii_value_string .= "\n" if $ascii_code == 10;
 			$previous_code = $ascii_code;
 		}
+		elsif($ascii_code > 126) {
+			$ascii_value_string .= pack("C*", $ascii_code) . "<$ascii_code>";
+			$previous_code = -1;
+		}
 		else {
 			$ascii_value_string .= pack("C*", $ascii_code);
 			$previous_code = -1;