commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1334517 - in /commons/proper/net/trunk/src/main/java/org/apache/commons/net/bsd: RCommandClient.java RExecClient.java
Date Sat, 05 May 2012 22:10:30 GMT
Author: sebb
Date: Sat May  5 22:10:29 2012
New Revision: 1334517

URL: http://svn.apache.org/viewvc?rev=1334517&view=rev
Log:
Don't use default charset

Modified:
    commons/proper/net/trunk/src/main/java/org/apache/commons/net/bsd/RCommandClient.java
    commons/proper/net/trunk/src/main/java/org/apache/commons/net/bsd/RExecClient.java

Modified: commons/proper/net/trunk/src/main/java/org/apache/commons/net/bsd/RCommandClient.java
URL: http://svn.apache.org/viewvc/commons/proper/net/trunk/src/main/java/org/apache/commons/net/bsd/RCommandClient.java?rev=1334517&r1=1334516&r2=1334517&view=diff
==============================================================================
--- commons/proper/net/trunk/src/main/java/org/apache/commons/net/bsd/RCommandClient.java
(original)
+++ commons/proper/net/trunk/src/main/java/org/apache/commons/net/bsd/RCommandClient.java
Sat May  5 22:10:29 2012
@@ -135,7 +135,7 @@ public class RCommandClient extends RExe
             throw new BindException("All ports in use.");
         }
 
-        _output_.write(Integer.toString(server.getLocalPort()).getBytes());
+        _output_.write(Integer.toString(server.getLocalPort()).getBytes("UTF-8")); // $NON-NLS
         _output_.write('\0');
         _output_.flush();
 

Modified: commons/proper/net/trunk/src/main/java/org/apache/commons/net/bsd/RExecClient.java
URL: http://svn.apache.org/viewvc/commons/proper/net/trunk/src/main/java/org/apache/commons/net/bsd/RExecClient.java?rev=1334517&r1=1334516&r2=1334517&view=diff
==============================================================================
--- commons/proper/net/trunk/src/main/java/org/apache/commons/net/bsd/RExecClient.java (original)
+++ commons/proper/net/trunk/src/main/java/org/apache/commons/net/bsd/RExecClient.java Sat
May  5 22:10:29 2012
@@ -89,7 +89,7 @@ public class RExecClient extends SocketC
 
         server = _serverSocketFactory_.createServerSocket(0, 1, getLocalAddress());
 
-        _output_.write(Integer.toString(server.getLocalPort()).getBytes());
+        _output_.write(Integer.toString(server.getLocalPort()).getBytes("UTF-8")); // $NON-NLS-1$
         _output_.write('\0');
         _output_.flush();
 



Mime
View raw message