You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@accumulo.apache.org by ec...@apache.org on 2014/09/09 18:53:34 UTC

git commit: ACCUMULO-3105 use the standard charset

Repository: accumulo
Updated Branches:
  refs/heads/master 3bac1a07d -> ac270044a


ACCUMULO-3105 use the standard charset


Project: http://git-wip-us.apache.org/repos/asf/accumulo/repo
Commit: http://git-wip-us.apache.org/repos/asf/accumulo/commit/ac270044
Tree: http://git-wip-us.apache.org/repos/asf/accumulo/tree/ac270044
Diff: http://git-wip-us.apache.org/repos/asf/accumulo/diff/ac270044

Branch: refs/heads/master
Commit: ac270044ab7f0dd03cd8b40883ab4fdfbc1fd26b
Parents: 3bac1a0
Author: Eric C. Newton <er...@gmail.com>
Authored: Tue Sep 9 12:53:22 2014 -0400
Committer: Eric C. Newton <er...@gmail.com>
Committed: Tue Sep 9 12:53:22 2014 -0400

----------------------------------------------------------------------
 shell/src/main/java/org/apache/accumulo/shell/Shell.java | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/accumulo/blob/ac270044/shell/src/main/java/org/apache/accumulo/shell/Shell.java
----------------------------------------------------------------------
diff --git a/shell/src/main/java/org/apache/accumulo/shell/Shell.java b/shell/src/main/java/org/apache/accumulo/shell/Shell.java
index 4cb7b53..16742b8 100644
--- a/shell/src/main/java/org/apache/accumulo/shell/Shell.java
+++ b/shell/src/main/java/org/apache/accumulo/shell/Shell.java
@@ -24,6 +24,7 @@ import java.io.IOException;
 import java.io.OutputStreamWriter;
 import java.io.PrintWriter;
 import java.net.InetAddress;
+import java.nio.charset.Charset;
 import java.nio.charset.StandardCharsets;
 import java.util.Arrays;
 import java.util.Collections;
@@ -185,7 +186,7 @@ public class Shell extends ShellOptions {
   public static final Logger log = Logger.getLogger(Shell.class);
   private static final Logger audit = Logger.getLogger(Shell.class.getName() + ".audit");
 
-  public static final String CHARSET = "ISO-8859-1";
+  public static final Charset CHARSET = StandardCharsets.ISO_8859_1;
   public static final int NO_FIXED_ARG_LENGTH_CHECK = -1;
   public static final String COMMENT_PREFIX = "#";
   public static final String HISTORY_DIR_NAME = ".accumulo";