From f6f03b55f145dcc8fd8e8d102430f00d8f76770c Mon Sep 17 00:00:00 2001
From: ludovicp <ludovicp@localhost>
Date: Fri, 28 May 2010 09:59:30 +0000
Subject: [PATCH] Fix issue #3376. Don't use StaticUtils.getBytes(String s) for CLI usage, since it convert strings to UTF-8 and not local charset.

---
 opends/src/server/org/opends/server/core/DirectoryServer.java |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/opends/src/server/org/opends/server/core/DirectoryServer.java b/opends/src/server/org/opends/server/core/DirectoryServer.java
index c697851..9a83f6b 100644
--- a/opends/src/server/org/opends/server/core/DirectoryServer.java
+++ b/opends/src/server/org/opends/server/core/DirectoryServer.java
@@ -8776,7 +8776,7 @@
   public static void printVersion(OutputStream outputStream)
   throws IOException
   {
-    outputStream.write(getBytes(PRINTABLE_VERSION_STRING));
+    outputStream.write(PRINTABLE_VERSION_STRING.getBytes());
 
     // Print extensions' extra information
     String extensionInformation =

--
Gitblit v1.10.0