Specify UTF-8 encoding for all Java agent commands
[lttng-ust.git] / liblttng-ust-java-agent / java / lttng-ust-agent-common / org / lttng / ust / agent / client / SessiondListLoggersCommand.java
index a8bc15209e8c3e4072d5f6a437d0a8921a2a4812..1c7ef9b400f019e7611c36b5bb349c99cc628b5d 100644 (file)
@@ -29,7 +29,7 @@ import java.util.Collection;
  * @author Alexandre Montplaisir
  * @author David Goulet
  */
-class SessiondListLoggersCommand implements ISessiondCommand {
+class SessiondListLoggersCommand extends SessiondCommand {
 
        @Override
        public LttngAgentResponse execute(ILttngTcpClientListener agent) {
@@ -73,7 +73,7 @@ class SessiondListLoggersCommand implements ISessiondCommand {
                        buf.putInt(loggers.size());
 
                        for (String logger : loggers) {
-                               buf.put(logger.getBytes());
+                               buf.put(logger.getBytes(SESSIOND_PROTOCOL_CHARSET));
                                /* NULL terminated byte after the logger name. */
                                buf.put((byte) 0x0);
                        }
This page took 0.024121 seconds and 4 git commands to generate.